Commit f1971a2e authored by WANG Cong's avatar WANG Cong Committed by David S. Miller

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: 91687355 ("kcm: Splice support")
Reported-by: default avatarDavid Binderman <linuxdev.baldrick@gmail.com>
Cc: Tom Herbert <tom@herbertland.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1740c29a
...@@ -1483,7 +1483,7 @@ static ssize_t kcm_splice_read(struct socket *sock, loff_t *ppos, ...@@ -1483,7 +1483,7 @@ static ssize_t kcm_splice_read(struct socket *sock, loff_t *ppos,
long timeo; long timeo;
struct kcm_rx_msg *rxm; struct kcm_rx_msg *rxm;
int err = 0; int err = 0;
size_t copied; ssize_t copied;
struct sk_buff *skb; struct sk_buff *skb;
/* Only support splice for SOCKSEQPACKET */ /* Only support splice for SOCKSEQPACKET */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment