Commit d841d6d3 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Sasha Levin

Bluetooth: btusb: Fix memory leak in Intel setup routine

[ Upstream commit ecffc804 ]

The SKB returned from the Intel specific version information command is
missing a kfree_skb.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 0879d31b
......@@ -1591,6 +1591,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.
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment