From: Jukka Rissanen Date: Wed, 10 Dec 2014 12:19:53 +0000 (+0200) Subject: Bluetooth: 6lowpan: Do not free skb when packet is dropped X-Git-Tag: v3.19-rc3~16^2~40^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=004fa5ed08cc5d3188db42c05d6b80feaae004c2;p=~emulex%2Finfiniband.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 76617be1e79..c989253737f 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; }