cls_u32: signedness bug
authorDan Carpenter <error27@gmail.com>
Mon, 4 Oct 2010 02:28:36 +0000 (02:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2010 07:40:39 +0000 (00:40 -0700)
commit4e18b3edf71f5d4ad653e3c2ff6560878e965f96
tree63487292026992afbf5226f44bec12a1264686e9
parent51e97a12bef19b7e43199fc153cf9bd5f2140362
cls_u32: signedness bug

skb_headroom() is unsigned so "skb_headroom(skb) + toff" is also
unsigned and can't be less than zero.  This test was added in 66d50d25:
"u32: negative offset fix"  It was supposed to fix a regression.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c