]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: fix sizeof to int comparison
authorYueHaibing <yuehaibing@huawei.com>
Tue, 18 Sep 2018 13:46:38 +0000 (15:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Sep 2018 03:11:43 +0000 (20:11 -0700)
commitee9130968e4104d3734efd7451d58cec75cd0b27
treebfc86186fb6cc7065f1a5bebd2a34d8751da5d94
parent990a25a5c8beb78dfd163328490a2afbcc22faac
net/smc: fix sizeof to int comparison

Comparing an int to a size, which is unsigned, causes the int to become
unsigned, giving the wrong result. kernel_sendmsg can return a negative
error code.

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