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:50:52 +0000 (14:50 +0100)
commitc3f13a4debd6f1dda4294831216216242e4624f1
tree64e26b407def422a37b2b633259cdbda0f9d4ecd
parent6a4aa53a94615ab4a8cf66b24e3780719378a059
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