]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit381897798a94065ffcad0772eecdc6b04a7ff23d
treebfc86186fb6cc7065f1a5bebd2a34d8751da5d94
parent71d117f527425e2d6a5029e8365d82a8d2d6916a
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