Commit fc12518a authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Johan Hedberg

Bluetooth: 6lowpan: Memory leak as the skb is not freed

The earlier multicast commit 36b3dd25 ("Bluetooth: 6lowpan:
Ensure header compression does not corrupt IPv6 header") lost one
skb free which then caused memory leak.
Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 02e246ae
...@@ -625,6 +625,8 @@ static netdev_tx_t bt_xmit(struct sk_buff *skb, struct net_device *netdev) ...@@ -625,6 +625,8 @@ static netdev_tx_t bt_xmit(struct sk_buff *skb, struct net_device *netdev)
send_mcast_pkt(skb, netdev); send_mcast_pkt(skb, netdev);
} }
dev_kfree_skb(skb);
if (err) if (err)
BT_DBG("ERROR: xmit failed (%d)", err); BT_DBG("ERROR: xmit failed (%d)", err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment