From: Eric Dumazet Date: Thu, 19 Apr 2012 02:24:53 +0000 (+0000) Subject: net: dont drop packet but consume it X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=85bb2a60fab28a338870faec222a1f2232b01caa;p=linux-beck.git 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 Signed-off-by: David S. Miller --- 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; }