]> 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)
commit86f740472acfc00dabff816bdd8b6fee65bb44d6
tree559d8883699d9f7ce4e3ff2e90300914ef5cee58
parent5210793b655a82fb89b2ea41cdc4a8c8b4f62088
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