1
0
Fork 0

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: 91687355b9 ("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>
hifive-unleashed-5.1
WANG Cong 2016-05-17 14:05:49 -07:00 committed by David S. Miller
parent 1740c29a46
commit f1971a2e03
1 changed files with 1 additions and 1 deletions

View File

@ -1483,7 +1483,7 @@ static ssize_t kcm_splice_read(struct socket *sock, loff_t *ppos,
long timeo;
struct kcm_rx_msg *rxm;
int err = 0;
size_t copied;
ssize_t copied;
struct sk_buff *skb;
/* Only support splice for SOCKSEQPACKET */