Skip to content

Commit

Permalink
Bluetooth: btusb: Fix memory leak in Intel setup routine
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Jun 8, 2015
1 parent 781f899 commit ecffc80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit ecffc80

Please sign in to comment.