diff options
author | Eric Dumazet <edumazet@google.com> | 2012-04-19 04:24:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-19 20:23:55 +0200 |
commit | 8460c00f6e2fb8e05421a277fee62fe09803f7a7 (patch) | |
tree | d27b5f318f07f8285e4b8831704b5490063f19ae /net | |
parent | ip6_tunnel: dont drop packet but consume it (diff) | |
download | linux-8460c00f6e2fb8e05421a277fee62fe09803f7a7.tar.xz linux-8460c00f6e2fb8e05421a277fee62fe09803f7a7.zip |
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')
-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; } |