projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7f9f6
)
packet: Fix leak in pre-defrag support.
author
David S. Miller
<davem@davemloft.net>
Wed, 6 Jul 2011 14:30:59 +0000
(07:30 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 6 Jul 2011 14:30:59 +0000
(07:30 -0700)
When we clone the SKB, we forget about the original
one. Avoid this problem by using skb_share_check().
Reported-by: Penttilä Mika <mika.penttila@ixonos.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c
patch
|
blob
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index
41f0489
..
aec50a1
100644
(file)
--- a/
net/packet/af_packet.c
+++ b/
net/packet/af_packet.c
@@
-476,7
+476,7
@@
static struct sk_buff *fanout_check_defrag(struct sk_buff *skb)
return skb;
if (ip_is_fragment(ip_hdr(skb))) {
- skb = skb_
clone
(skb, GFP_ATOMIC);
+ skb = skb_
share_check
(skb, GFP_ATOMIC);
if (skb) {
if (pskb_trim_rcsum(skb, len))
return skb;