aboutsummaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-11-10 21:53:30 -0800
committerDavid S. Miller <davem@davemloft.net>2007-11-10 21:53:30 -0800
commit78608ba0326f1448f9a10dbb402a38192559f639 (patch)
treebeed02e8e886be6a9661e9eb6ca60cc1208c59d2 /net/sched
parent39aaac114e192bce500204f9c9e1fffff4c2b519 (diff)
[NET]: Fix skb_truesize_check() assertion
The intent of the assertion in skb_truesize_check() is to check for skb->truesize being decremented too much by other code, resulting in a wraparound below zero. The type of the right side of the comparison causes the compiler to promote the left side to an unsigned type, despite the presence of an explicit type cast. This defeats the check for negativity. Ensure both sides of the comparison are a signed type to prevent the implicit type conversion. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions