Bluetooth: 6lowpan: Do not free skb when packet is dropped
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 10 Dec 2014 12:19:53 +0000 (14:19 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 19 Dec 2014 12:39:50 +0000 (13:39 +0100)
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>
net/bluetooth/6lowpan.c

index 76617be1e797ba6d41c72fbc8f582d5a5614ff3e..c989253737f05985e214fbf2f272a69412f9a0fb 100644 (file)
@@ -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;
 }