diff options
author | Eric Dumazet <edumazet@google.com> | 2012-04-19 06:24:53 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-19 22:23:55 +0400 |
commit | 85bb2a60fab28a338870faec222a1f2232b01caa (patch) | |
tree | f6d3ad4e841244c5575754d57d5f1d5d4596718d /net/core/skbuff.c | |
parent | 7604adc2fffc275adc6674659e09479adf633e4a (diff) | |
download | linux-85bb2a60fab28a338870faec222a1f2232b01caa.tar.xz |
net: dont drop packet but consume it
When we need to clone skb, we dont drop a packet.
Call consume_skb() to not confuse dropwatch.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 8f0d68d14360..43c490d52df6 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -1274,7 +1274,7 @@ drop_pages: return -ENOMEM; nfrag->next = frag->next; - kfree_skb(frag); + consume_skb(frag); frag = nfrag; *fragp = frag; } |