Bluetooth: btusb: Fix memory leak in Intel setup routine
Marcel Holtmann
maintainerPATCH 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.
Signed-off-by Marcel Holtmann <[email protected]>
--- drivers/bluetooth/btusb.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/bluetooth/btusb.c +2 -0
@@ -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
Johan Hedberg
AppliedHi Marcel,
Quoted 8 lines · Marcel Holtmann
The SKB returned from the Intel specific version information command is missing a
kfree_skb.Signed-off-by Marcel Holtmann <[email protected]>--- drivers/bluetooth/btusb.c | 2 ++ 1 file changed, 2 insertions(+)
Applied to bluetooth-next. Thanks.
Johan