Re: BUG in 2.2.22 skb_realloc_headroom()

Nicolas S. Dade (ndade@adsl-63-197-69-248.dsl.snfc21.pacbell.net)
Wed, 30 Oct 2002 02:51:06 -0800


On Wed, Oct 30, 2002 at 09:36:11PM +1100, James Morris wrote:
> On Tue, 29 Oct 2002, Nicolas S. Dade wrote:
>
> > skb_realloc_headroom() panics when new headroom is smaller
> > than existing headroom.
>
> Would you please test out the patch below?

It works.

It seems a pity to allocate more than needed when
realloc'ing to a smaller headroom; that's why I
used skb->len+headroom as the new length, but
you know this already.

-- 
-- Nicolas Dade    http://nsd.dyndns.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/