From: Marcel Holtmann Date: Sun, 7 Jun 2015 07:42:19 +0000 (+0200) Subject: Bluetooth: btusb: Fix memory leak in Intel setup routine X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ceea901c61ddb9218989df070b88e2fa44ea2da1;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git Bluetooth: btusb: Fix memory leak in Intel setup routine commit ecffc80478cdce122f0ecb6a4e4f909132dd5c47 upstream. The SKB returned from the Intel specific version information command is missing a kfree_skb. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 92b98531777..537ad689778 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -1234,6 +1234,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. *