net/smc: handle unregistered buffers
authorKarsten Graul <kgraul@linux.ibm.com>
Thu, 3 May 2018 15:57:38 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2018 18:47:31 +0000 (14:47 -0400)
commita6920d1d130c3de039be982eba42542d329dc64c
treeeb06c1cdb7a9867644730d86ab9e13e12be17b41
parente63a5f8c19d7807823d68830ebe8cfbd4419ab13
net/smc: handle unregistered buffers

When smc_wr_reg_send() fails then tag (regerr) the affected buffer and
free it in smc_buf_unuse().

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