]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: dont drop packet but consume it
authorEric Dumazet <edumazet@google.com>
Thu, 19 Apr 2012 02:24:53 +0000 (02:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2012 18:23:55 +0000 (14:23 -0400)
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>
net/core/skbuff.c

index 8f0d68d143600fedb3f55a97bf2d1578aaf8345d..43c490d52df63f5f959c04cb210d164b0eb43959 100644 (file)
@@ -1274,7 +1274,7 @@ drop_pages:
                                return -ENOMEM;
 
                        nfrag->next = frag->next;
-                       kfree_skb(frag);
+                       consume_skb(frag);
                        frag = nfrag;
                        *fragp = frag;
                }