From: Herbert Xu <[EMAIL PROTECTED]>
Date: Thu, 20 Apr 2006 15:04:06 +1000

> On Wed, Apr 19, 2006 at 09:55:13PM -0700, David S. Miller wrote:
> > +static inline void skb_truesize_check(struct sk_buff *skb)
> > +{
> > +   if (unlikely((int)skb->truesize < sizeof(struct sk_buff)))
> > +           skb_truesize_bug(skb);
> > +}
> 
> I think we can go for the stronger test:
> 
> skb->truesize < sizeof(struct sk_buff) + skb->len

Agreed, let me see if that triggers on my machine before
I commit this :-)
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to