瀏覽代碼

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>
Jukka Rissanen 10 年之前
父節點
當前提交
004fa5ed08
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      net/bluetooth/6lowpan.c

+ 0 - 1
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;
 }