diff options
author | Martin Townsend <mtownsend1973@gmail.com> | 2014-10-23 10:40:55 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-27 10:51:16 -0400 |
commit | 3c400b843d4c07703b68e91854bc395c95e4c51a (patch) | |
tree | 36f7b513004f80e9eade03ece2ca1f05930b96db /net | |
parent | 04dfd7386ab7a0f016bbcf30b3a5051650242120 (diff) |
bluetooth:6lowpan: use consume_skb when packet processed successfully
Signed-off-by: Martin Townsend <mtownsend1973@gmail.com>
Acked-by: Alexander Aring <alex.aring@gmail.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/6lowpan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 94bbb6611bc5..40e2cec7fcef 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c | |||
@@ -337,8 +337,8 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev, | |||
337 | dev->stats.rx_bytes += skb->len; | 337 | dev->stats.rx_bytes += skb->len; |
338 | dev->stats.rx_packets++; | 338 | dev->stats.rx_packets++; |
339 | 339 | ||
340 | kfree_skb(local_skb); | 340 | consume_skb(local_skb); |
341 | kfree_skb(skb); | 341 | consume_skb(skb); |
342 | } else { | 342 | } else { |
343 | switch (skb->data[0] & 0xe0) { | 343 | switch (skb->data[0] & 0xe0) { |
344 | case LOWPAN_DISPATCH_IPHC: /* ipv6 datagram */ | 344 | case LOWPAN_DISPATCH_IPHC: /* ipv6 datagram */ |
@@ -363,7 +363,8 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev, | |||
363 | dev->stats.rx_bytes += skb->len; | 363 | dev->stats.rx_bytes += skb->len; |
364 | dev->stats.rx_packets++; | 364 | dev->stats.rx_packets++; |
365 | 365 | ||
366 | kfree_skb(skb); | 366 | consume_skb(local_skb); |
367 | consume_skb(skb); | ||
367 | break; | 368 | break; |
368 | default: | 369 | default: |
369 | break; | 370 | break; |