summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2014-10-01 12:30:26 +0400
committerJohan Hedberg <johan.hedberg@intel.com>2014-10-02 14:41:30 +0400
commitfc12518a4bcbd4214652291df76f692343bca3d5 (patch)
tree1eae215c1cfbb432a7938927d53250928956a245 /net
parent02e246aee868e982eecc25ee97d02acf2c2b8884 (diff)
downloadlinux-fc12518a4bcbd4214652291df76f692343bca3d5.tar.xz
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 <jukka.rissanen@linux.intel.com> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/6lowpan.c2
1 files changed, 2 insertions, 0 deletions
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);