summaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-04-19 02:24:53 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-19 14:23:55 -0400
commit85bb2a60fab28a338870faec222a1f2232b01caa (patch)
treef6d3ad4e841244c5575754d57d5f1d5d4596718d /net/core/skbuff.c
parent7604adc2fffc275adc6674659e09479adf633e4a (diff)
downloadop-kernel-dev-85bb2a60fab28a338870faec222a1f2232b01caa.zip
op-kernel-dev-85bb2a60fab28a338870faec222a1f2232b01caa.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 8f0d68d..43c490d 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;
}
OpenPOWER on IntegriCloud