]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec38e998f0442fdacf30d3a861d7293b69c117f3
tree559d8883699d9f7ce4e3ff2e90300914ef5cee58
parent89df56b01f293dfca3d277f62460dd2a80b1b0d7
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