projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebad18e
)
gro: Fix error handling on extremely short frags
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 17 Jan 2009 19:47:18 +0000
(19:47 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 20 Jan 2009 22:44:02 +0000
(14:44 -0800)
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>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index
6e44c32
..
5379b0c
100644
(file)
--- 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;
}