--- linux-2.2.22/net/core/skbuff.c.orig Tue Oct 29 21:13:24 2002 +++ linux-2.2.22/net/core/skbuff.c Tue Oct 29 21:15:14 2002 @@ -7,6 +7,7 @@ * Version: $Id: skbuff.c,v 1.55 1999/02/23 08:12:27 davem Exp $ * * Fixes: + * Nicolas Dade : Fixed skb_realloc_headroom to smaller headroom * Alan Cox : Fixed the worst of the load balancer bugs. * Dave Platt : Interrupt stacking fix. * Richard Kooijman : Timestamp fixes. @@ -316,13 +317,12 @@ { struct sk_buff *n; unsigned long offset; - int headroom = skb_headroom(skb); /* * Allocate the copy buffer */ - n=alloc_skb(skb->truesize+newheadroom-headroom, GFP_ATOMIC); + n=alloc_skb(skb->len+newheadroom, GFP_ATOMIC); if(n==NULL) return NULL;