diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-06-07 09:42:19 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-06-08 11:07:17 +0300 |
commit | ecffc80478cdce122f0ecb6a4e4f909132dd5c47 (patch) | |
tree | 3563739fff92f7cd565632666b9002c03844796b /drivers/bluetooth | |
parent | 781f899f2f9d8b71e35225a087f90052059486c5 (diff) | |
download | lwn-ecffc80478cdce122f0ecb6a4e4f909132dd5c47.tar.gz lwn-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')
-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 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. * |