]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 4 Jul 2015 03:02:24 +0000 (23:02 -0400)
[ Upstream commit ecffc80478cdce122f0ecb6a4e4f909132dd5c47 ]

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>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/bluetooth/btusb.c

index 253febc4a79d103f266b35ebf70f9f392663650e..bb6f8b52814277f68dbf22bc55dce70d2ef03c5d 100644 (file)
@@ -1591,6 +1591,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.
         *