From: Marcel Holtmann Date: Sun, 7 Jun 2015 07:42:19 +0000 (+0200) Subject: Bluetooth: btusb: Fix memory leak in Intel setup routine X-Git-Tag: firefly_0821_release~176^2~1587^2~29^2~70 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ecffc80478cdce122f0ecb6a4e4f909132dd5c47;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Johan Hedberg Cc: stable@vger.kernel.org --- 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. *