smc: improve smc_clc_send_decline() error handling
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Thu, 7 Dec 2017 12:38:45 +0000 (13:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Dec 2017 20:03:12 +0000 (15:03 -0500)
commit0c9f1515aa80f12734123e5fcc50ffe525e1d533
tree559d8883699d9f7ce4e3ff2e90300914ef5cee58
parenta8ae890b9c5f0d812337d97f2552c0d772957dc2
smc: improve smc_clc_send_decline() error handling

Let smc_clc_send_decline() return with an error, if the amount
sent is smaller than the length of an smc decline message.

Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc_clc.c