From: Eric Dumazet Date: Thu, 19 Apr 2012 02:24:28 +0000 (+0000) Subject: netlink: dont drop packet but consume it X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8460c00f6e2fb8e05421a277fee62fe09803f7a7;p=deliverable%2Flinux.git netlink: 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/netlink/af_netlink.c b/net/netlink/af_netlink.c index faa48f70b7c9..da8721443503 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -866,7 +866,7 @@ static struct sk_buff *netlink_trim(struct sk_buff *skb, gfp_t allocation) struct sk_buff *nskb = skb_clone(skb, allocation); if (!nskb) return skb; - kfree_skb(skb); + consume_skb(skb); skb = nskb; }