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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2018 22:59:35 +0000 (15:59 -0700)
commitfb692ec4117f6fd25044cfb5720d6b79d400dc65
treeb01ee2b1e809ef6e8cd1e8e18446bb3f46f06c80
parentee1abcf689353f36d9322231b4320926096bdee0
net/smc: fix smc_buf_unuse to use the lgr pointer

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>
net/smc/smc_core.c