diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-06-07 09:42:19 +0200 |
---|---|---|
committer | Luis Henriques <luis.henriques@canonical.com> | 2015-07-15 10:00:22 +0100 |
commit | 544c8dd4f9f41c8e3026e74271225bb7ef0169fc (patch) | |
tree | 26464a217a9098c549d5c8f4e2351bf2fc4e70bd /drivers/bluetooth | |
parent | 88176c35fc8e00a3038ccdab1d59cadc07bd5a81 (diff) |
Bluetooth: btusb: Fix memory leak in Intel setup routine
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: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btusb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index fbedcf61060f..41c4a74d589f 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -1307,6 +1307,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. * |