Re: [PATCH] NET: Fix skb_truesize_check() assertion

2007-11-10 Thread David Miller
From: Chuck Lever [EMAIL PROTECTED] Date: Thu, 08 Nov 2007 11:59:19 -0500 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

[PATCH] NET: Fix skb_truesize_check() assertion

2007-11-08 Thread Chuck Lever
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