]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.10.85/bluetooth-btusb-fix-memory-leak-in-intel-setup-routine.patch
Linux 3.10.85
[thirdparty/kernel/stable-queue.git] / releases / 3.10.85 / bluetooth-btusb-fix-memory-leak-in-intel-setup-routine.patch
CommitLineData
81606454
GKH
1From ecffc80478cdce122f0ecb6a4e4f909132dd5c47 Mon Sep 17 00:00:00 2001
2From: Marcel Holtmann <marcel@holtmann.org>
3Date: Sun, 7 Jun 2015 09:42:19 +0200
4Subject: Bluetooth: btusb: Fix memory leak in Intel setup routine
5
6From: Marcel Holtmann <marcel@holtmann.org>
7
8commit ecffc80478cdce122f0ecb6a4e4f909132dd5c47 upstream.
9
10The SKB returned from the Intel specific version information command is
11missing a kfree_skb.
12
13Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
14Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
15Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16
17---
18 drivers/bluetooth/btusb.c | 2 ++
19 1 file changed, 2 insertions(+)
20
21--- a/drivers/bluetooth/btusb.c
22+++ b/drivers/bluetooth/btusb.c
23@@ -1234,6 +1234,8 @@ static int btusb_setup_intel(struct hci_
24 }
25 fw_ptr = fw->data;
26
27+ kfree_skb(skb);
28+
29 /* This Intel specific command enables the manufacturer mode of the
30 * controller.
31 *