diff options
author | Eric Dumazet <edumazet@google.com> | 2012-04-19 02:24:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-19 14:23:55 -0400 |
commit | 8460c00f6e2fb8e05421a277fee62fe09803f7a7 (patch) | |
tree | d27b5f318f07f8285e4b8831704b5490063f19ae /net/netlink | |
parent | 9ff264492ffa2ac90698e1806bf27e716a99fee8 (diff) | |
download | linux-8460c00f6e2fb8e05421a277fee62fe09803f7a7.tar.bz2 |
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 <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |