]>
Commit | Line | Data |
---|---|---|
81606454 GKH |
1 | From ecffc80478cdce122f0ecb6a4e4f909132dd5c47 Mon Sep 17 00:00:00 2001 |
2 | From: Marcel Holtmann <marcel@holtmann.org> | |
3 | Date: Sun, 7 Jun 2015 09:42:19 +0200 | |
4 | Subject: Bluetooth: btusb: Fix memory leak in Intel setup routine | |
5 | ||
6 | From: Marcel Holtmann <marcel@holtmann.org> | |
7 | ||
8 | commit ecffc80478cdce122f0ecb6a4e4f909132dd5c47 upstream. | |
9 | ||
10 | The SKB returned from the Intel specific version information command is | |
11 | missing a kfree_skb. | |
12 | ||
13 | Signed-off-by: Marcel Holtmann <marcel@holtmann.org> | |
14 | Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> | |
15 | Signed-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 | * |