diff options
author | Eric Dumazet <edumazet@google.com> | 2012-04-18 22:24:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-19 14:23:55 -0400 |
commit | 8460c00f6e2fb8e05421a277fee62fe09803f7a7 (patch) | |
tree | d27b5f318f07f8285e4b8831704b5490063f19ae /net/netlink/af_netlink.c | |
parent | 9ff264492ffa2ac90698e1806bf27e716a99fee8 (diff) |
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/af_netlink.c')
-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) | |||
866 | struct sk_buff *nskb = skb_clone(skb, allocation); | 866 | struct sk_buff *nskb = skb_clone(skb, allocation); |
867 | if (!nskb) | 867 | if (!nskb) |
868 | return skb; | 868 | return skb; |
869 | kfree_skb(skb); | 869 | consume_skb(skb); |
870 | skb = nskb; | 870 | skb = nskb; |
871 | } | 871 | } |
872 | 872 | ||