diff options
author | Eric Dumazet <edumazet@google.com> | 2012-04-19 02:24:53 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-19 14:23:55 -0400 |
commit | 85bb2a60fab28a338870faec222a1f2232b01caa (patch) | |
tree | f6d3ad4e841244c5575754d57d5f1d5d4596718d | |
parent | 7604adc2fffc275adc6674659e09479adf633e4a (diff) | |
download | linux-3.10-85bb2a60fab28a338870faec222a1f2232b01caa.tar.gz linux-3.10-85bb2a60fab28a338870faec222a1f2232b01caa.tar.bz2 linux-3.10-85bb2a60fab28a338870faec222a1f2232b01caa.zip |
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>
-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 8f0d68d1436..43c490d52df 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; } |