aboutsummaryrefslogtreecommitdiffstats
path: root/net/ax25
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-06-03 21:17:19 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-04 11:27:40 -0400
commit5d0ba55b6486f58cc890918d7167063d83f7fbb4 (patch)
tree9f9a59cc9fc9d31d7e557c7688a054f8fea8a6ab /net/ax25
parent4aea39c11c610e411768649fdc04777903ebfe07 (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/ax25')
-rw-r--r--net/ax25/ax25_out.c2
-rw-r--r--net/ax25/ax25_route.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ax25/ax25_out.c b/net/ax25/ax25_out.c
index be8a25e0db65..be2acab9be9d 100644
--- a/net/ax25/ax25_out.c
+++ b/net/ax25/ax25_out.c
@@ -350,7 +350,7 @@ void ax25_transmit_buffer(ax25_cb *ax25, struct sk_buff *skb, int type)
350 if (skb->sk != NULL) 350 if (skb->sk != NULL)
351 skb_set_owner_w(skbn, skb->sk); 351 skb_set_owner_w(skbn, skb->sk);
352 352
353 kfree_skb(skb); 353 consume_skb(skb);
354 skb = skbn; 354 skb = skbn;
355 } 355 }
356 356
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c
index a65588040b9e..d39097737e38 100644
--- a/net/ax25/ax25_route.c
+++ b/net/ax25/ax25_route.c
@@ -474,7 +474,7 @@ struct sk_buff *ax25_rt_build_path(struct sk_buff *skb, ax25_address *src,
474 if (skb->sk != NULL) 474 if (skb->sk != NULL)
475 skb_set_owner_w(skbn, skb->sk); 475 skb_set_owner_w(skbn, skb->sk);
476 476
477 kfree_skb(skb); 477 consume_skb(skb);
478 478
479 skb = skbn; 479 skb = skbn;
480 } 480 }