summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2014-12-10 14:19:53 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-12-19 13:39:50 +0100
commit004fa5ed08cc5d3188db42c05d6b80feaae004c2 (patch)
tree71e8d39ec0a23c728843193b3d59430cc77bf3a2 /net/bluetooth
parent00c845dbfe2e966a2efd3818e40f46e286ca1ae6 (diff)
downloadop-kernel-dev-004fa5ed08cc5d3188db42c05d6b80feaae004c2.zip
op-kernel-dev-004fa5ed08cc5d3188db42c05d6b80feaae004c2.tar.gz
Bluetooth: 6lowpan: Do not free skb when packet is dropped
If we need to drop the message because of some error in the compression etc, then do not free the skb as that is done automatically in other part of networking stack. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/6lowpan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index 76617be..c989253 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -390,7 +390,6 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev,
drop:
dev->stats.rx_dropped++;
- kfree_skb(skb);
return NET_RX_DROP;
}
OpenPOWER on IntegriCloud