diff options
author | Eric Dumazet <edumazet@google.com> | 2012-06-03 21:17:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-04 11:27:40 -0400 |
commit | 5d0ba55b6486f58cc890918d7167063d83f7fbb4 (patch) | |
tree | 9f9a59cc9fc9d31d7e557c7688a054f8fea8a6ab /net/ipv4/ip_output.c | |
parent | 4aea39c11c610e411768649fdc04777903ebfe07 (diff) |
net: use consume_skb() in place of kfree_skb()
Remove some dropwatch/drop_monitor false positives.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r-- | net/ipv4/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 451f97c42eb4..b99ca4e154b9 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
@@ -200,7 +200,7 @@ static inline int ip_finish_output2(struct sk_buff *skb) | |||
200 | } | 200 | } |
201 | if (skb->sk) | 201 | if (skb->sk) |
202 | skb_set_owner_w(skb2, skb->sk); | 202 | skb_set_owner_w(skb2, skb->sk); |
203 | kfree_skb(skb); | 203 | consume_skb(skb); |
204 | skb = skb2; | 204 | skb = skb2; |
205 | } | 205 | } |
206 | 206 | ||
@@ -709,7 +709,7 @@ slow_path: | |||
709 | 709 | ||
710 | IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGCREATES); | 710 | IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGCREATES); |
711 | } | 711 | } |
712 | kfree_skb(skb); | 712 | consume_skb(skb); |
713 | IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGOKS); | 713 | IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGOKS); |
714 | return err; | 714 | return err; |
715 | 715 | ||