]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x25: '< 0' and '>= 0' test on unsigned
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 13 Mar 2009 23:04:12 +0000 (16:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2009 23:04:12 +0000 (16:04 -0700)
commit8db09f26f912f7c90c764806e804b558da520d4f
treea02b562f75c862306aebbfa207bcdb1657a87bd9
parent73ce7b01b4496a5fbf9caf63033c874be692333f
x25: '< 0' and '>= 0' test on unsigned

skb->len is an unsigned int, so the test in x25_rx_call_request() always
evaluates to true.

len in x25_sendmsg() is unsigned as well. so -ERRORS returned by x25_output()
are not noticed.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/x25/af_x25.c