aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet
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/decnet
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/decnet')
-rw-r--r--net/decnet/dn_neigh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c
index ac90f658586c..8e9a35b17df4 100644
--- a/net/decnet/dn_neigh.c
+++ b/net/decnet/dn_neigh.c
@@ -240,7 +240,7 @@ static int dn_long_output(struct neighbour *neigh, struct sk_buff *skb)
240 kfree_skb(skb); 240 kfree_skb(skb);
241 return -ENOBUFS; 241 return -ENOBUFS;
242 } 242 }
243 kfree_skb(skb); 243 consume_skb(skb);
244 skb = skb2; 244 skb = skb2;
245 net_info_ratelimited("dn_long_output: Increasing headroom\n"); 245 net_info_ratelimited("dn_long_output: Increasing headroom\n");
246 } 246 }
@@ -283,7 +283,7 @@ static int dn_short_output(struct neighbour *neigh, struct sk_buff *skb)
283 kfree_skb(skb); 283 kfree_skb(skb);
284 return -ENOBUFS; 284 return -ENOBUFS;
285 } 285 }
286 kfree_skb(skb); 286 consume_skb(skb);
287 skb = skb2; 287 skb = skb2;
288 net_info_ratelimited("dn_short_output: Increasing headroom\n"); 288 net_info_ratelimited("dn_short_output: Increasing headroom\n");
289 } 289 }
@@ -322,7 +322,7 @@ static int dn_phase3_output(struct neighbour *neigh, struct sk_buff *skb)
322 kfree_skb(skb); 322 kfree_skb(skb);
323 return -ENOBUFS; 323 return -ENOBUFS;
324 } 324 }
325 kfree_skb(skb); 325 consume_skb(skb);
326 skb = skb2; 326 skb = skb2;
327 net_info_ratelimited("dn_phase3_output: Increasing headroom\n"); 327 net_info_ratelimited("dn_phase3_output: Increasing headroom\n");
328 } 328 }