Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 004fa5ed authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Marcel Holtmann
Browse files

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: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 00c845db
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -390,7 +390,6 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev,


drop:
drop:
	dev->stats.rx_dropped++;
	dev->stats.rx_dropped++;
	kfree_skb(skb);
	return NET_RX_DROP;
	return NET_RX_DROP;
}
}