From: Herbert Xu Date: Sat, 17 Jan 2009 19:47:18 +0000 (+0000) Subject: gro: Fix error handling on extremely short frags X-Git-Tag: v2.6.29-rc3~23^2~42 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9a8e47ffd95608f0768e1a8a0225c822aa53aa9b;p=linux-2.6-omap-h63xx.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 6e44c327710..5379b0c1190 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; }