projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8db09f2
)
tcp: '< 0' test on unsigned
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 13 Mar 2009 23:05:14 +0000
(16:05 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 13 Mar 2009 23:05:14 +0000
(16:05 -0700)
promote 'cnt' to size_t, to match 'len'.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_probe.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_probe.c
b/net/ipv4/tcp_probe.c
index 25524d4e372a387a4897c64281c3bd8eefc70b53..59f5b5e7c56684ff2d3bdbdfcf469ae97b633763 100644
(file)
--- a/
net/ipv4/tcp_probe.c
+++ b/
net/ipv4/tcp_probe.c
@@
-165,9
+165,10
@@
static int tcpprobe_sprint(char *tbuf, int n)
static ssize_t tcpprobe_read(struct file *file, char __user *buf,
size_t len, loff_t *ppos)
{
- int error = 0, cnt = 0;
+ int error = 0;
+ size_t cnt = 0;
- if (!buf
|| len < 0
)
+ if (!buf)
return -EINVAL;
while (cnt < len) {