summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btusb.c
diff options
context:
space:
mode:
authorMarcel Holtmann2015-06-07 09:42:19 +0200
committerJohan Hedberg2015-06-08 10:07:17 +0200
commitecffc80478cdce122f0ecb6a4e4f909132dd5c47 (patch)
tree3563739fff92f7cd565632666b9002c03844796b /drivers/bluetooth/btusb.c
parentBluetooth: Fix race condition with user channel and setup stage (diff)
downloadkernel-qcow2-linux-ecffc80478cdce122f0ecb6a4e4f909132dd5c47.tar.gz
kernel-qcow2-linux-ecffc80478cdce122f0ecb6a4e4f909132dd5c47.tar.xz
kernel-qcow2-linux-ecffc80478cdce122f0ecb6a4e4f909132dd5c47.zip
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 <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/bluetooth/btusb.c')
-rw-r--r--drivers/bluetooth/btusb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index c956250176b3..7f936db169f5 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -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.
*