From: WANG Cong Date: Tue, 17 May 2016 21:05:49 +0000 (-0700) Subject: kcm: fix a signedness in kcm_splice_read() X-Git-Tag: MMI-PSA29.97-13-9~7876^2~31 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1971a2e0393a86464caa77aa52168b731960dfa;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: 91687355b927 ("kcm: Splice support") Reported-by: David Binderman Cc: Tom Herbert Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c index 40662d73204f..0b68ba730a06 100644 --- a/net/kcm/kcmsock.c +++ b/net/kcm/kcmsock.c @@ -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 */