Skip to contentSkip to conversation

Bluetooth: btusb: Fix memory leak in Intel setup routine

PATCH Applied Marcel Holtmann 2 participants 2 messages Jun 7, 2015 – Jun 8, 2015 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: btusb: Fix memory leak in Intel setup routine

The SKB returned from the Intel specific version information command is missing a kfree_skb.

---
 drivers/bluetooth/btusb.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bluetooth/btusb.c +2 -0
index c956250176b3..7f936db169f5 100644
@@ -1616,6 +1616,8 @@ static int btusb_setup_intel(struct hci_dev *hdev)
 	}
 	fw_ptr = fw->data;
 
+	kfree_skb(skb);
+
 	/* This Intel specific command enables the manufacturer mode of the
 	 * controller.
 	 *
Signature · 1 line
2.4.2