]> git.baikalelectronics.ru Git - kernel.git/commit
kcm: fix a signedness in kcm_splice_read()
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 17 May 2016 21:05:49 +0000 (14:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2016 18:26:51 +0000 (11:26 -0700)
commit06075c47b2554e3b310e0f5ac49439ccac8e92e3
tree963ddd40bf0a0199c1c0568d0ba3bc2f21895e6b
parent99c31d5f6282e08f57cb0924c60bb2a186803adb
kcm: fix a signedness in kcm_splice_read()

skb_splice_bits() returns int, kcm_splice_read() returns ssize_t,
both are signed.

We may need another patch to make them all ssize_t, but that
deserves a separated patch.

Fixes: d0a68573c21f ("kcm: Splice support")
Reported-by: David Binderman <linuxdev.baldrick@gmail.com>
Cc: Tom Herbert <tom@herbertland.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/kcm/kcmsock.c