From: Jukka Rissanen Date: Wed, 1 Oct 2014 08:30:26 +0000 (+0300) Subject: Bluetooth: 6lowpan: Memory leak as the skb is not freed X-Git-Tag: firefly_0821_release~176^2~3001^2~75^2~24^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fc12518a4bcbd4214652291df76f692343bca3d5;p=firefly-linux-kernel-4.4.55.git Bluetooth: 6lowpan: Memory leak as the skb is not freed The earlier multicast commit 36b3dd250dde ("Bluetooth: 6lowpan: Ensure header compression does not corrupt IPv6 header") lost one skb free which then caused memory leak. Signed-off-by: Jukka Rissanen Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index f0432aea8dad..add2b58312d7 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -625,6 +625,8 @@ static netdev_tx_t bt_xmit(struct sk_buff *skb, struct net_device *netdev) send_mcast_pkt(skb, netdev); } + dev_kfree_skb(skb); + if (err) BT_DBG("ERROR: xmit failed (%d)", err);