]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: fix another sizeof to int comparison
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 30 Jan 2019 17:51:00 +0000 (18:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 22:45:44 +0000 (14:45 -0800)
commit483be696af33517abe284ecaf08046f3122d6379
tree7199bee627e5b513827cd57add8cb0edbc37048c
parent532b7ef79a807b00c718719dbce60d135d8187aa
net/smc: fix another 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: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_clc.c