From: Herbert Xu Date: Sat, 17 Jan 2009 19:47:18 +0000 (+0000) Subject: gro: Fix error handling on extremely short frags X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9a8e47ffd95608f0768e1a8a0225c822aa53aa9b;p=openwrt%2Fstaging%2Fblogic.git gro: Fix error handling on extremely short frags When a frag is shorter than an Ethernet header, we'd return a zeroed packet instead of aborting. This patch fixes that. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 6e44c3277101..5379b0c1190a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2536,6 +2536,7 @@ struct sk_buff *napi_fraginfo_skb(struct napi_struct *napi, if (!pskb_may_pull(skb, ETH_HLEN)) { napi_reuse_skb(napi, skb); + skb = NULL; goto out; }