Bluetooth: btusb: Fix memory leak in Intel setup routine
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 7 Jun 2015 07:42:19 +0000 (09:42 +0200)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:10 +0000 (13:09 +0000)
commit ecffc80478cdce122f0ecb6a4e4f909132dd5c47 upstream.

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

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/btusb.c

index 92b985317770e38ab4d0e1e1a17f95faf74ee380..537ad6897784b88859e961d38f9bb7c51cce821f 100644 (file)
@@ -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.
         *