[NET]: Fix ___pskb_trim when entire frag_list needs dropping
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 31 Jul 2006 03:20:28 +0000 (20:20 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 2 Aug 2006 20:38:16 +0000 (13:38 -0700)
When the trim point is within the head and there is no paged data,
___pskb_trim fails to drop the first element in the frag_list.
This patch fixes this by moving the len <= offset case out of the
page data loop.

This patch also adds a missing kfree_skb on the frag that we just
cloned.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found