Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */