diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-05-17 23:05:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-19 20:26:51 +0200 |
commit | f1971a2e0393a86464caa77aa52168b731960dfa (patch) | |
tree | 963ddd40bf0a0199c1c0568d0ba3bc2f21895e6b /net | |
parent | net: ehea: avoid null pointer dereference (diff) | |
download | linux-f1971a2e0393a86464caa77aa52168b731960dfa.tar.xz linux-f1971a2e0393a86464caa77aa52168b731960dfa.zip |
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 <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>
Diffstat (limited to 'net')
-rw-r--r-- | net/kcm/kcmsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |