diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-01-17 20:47:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-20 23:44:02 +0100 |
commit | 9a8e47ffd95608f0768e1a8a0225c822aa53aa9b (patch) | |
tree | 2fb981c68f70d7d97cda5b444233b0a98e9c9360 /net | |
parent | gro: Fix handling of complete checksums in IPv6 (diff) | |
download | linux-9a8e47ffd95608f0768e1a8a0225c822aa53aa9b.tar.xz linux-9a8e47ffd95608f0768e1a8a0225c822aa53aa9b.zip |
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 <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |