]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/smc: fix smc_buf_unuse to use the lgr pointer
authorKarsten Graul <kgraul@linux.ibm.com>
Thu, 25 Oct 2018 11:25:28 +0000 (13:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:54 +0000 (14:51 +0100)
commitf235cdcf4fc4924327bcd7df2e10444e60cb9d92
tree001afd93e4551c9b9cf8d151eb2a8758a7962ebf
parentd09a8fb161034df263d3fcfbf1cb47e0003def55
net/smc: fix smc_buf_unuse to use the lgr pointer

[ Upstream commit fb692ec4117f6fd25044cfb5720d6b79d400dc65 ]

The pointer to the link group is unset in the smc connection structure
right before the call to smc_buf_unuse. Provide the lgr pointer to
smc_buf_unuse explicitly.
And move the call to smc_lgr_schedule_free_work to the end of
smc_conn_free.

Fixes: a6920d1d130c ("net/smc: handle unregistered buffers")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/smc/smc_core.c