Bluetooth: hci_core: Fix leaking sent_cmd skb
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 4 Feb 2022 21:12:35 +0000 (13:12 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Feb 2022 15:54:24 +0000 (16:54 +0100)
commit4840aa67576b598093d2c6fea8987d065f717bca
tree3991d3c5df39e12882a8c425fd08e03c0afcfaaa
parenta5dc88794406e8e900d4aedddf9818d5d59d3aac
Bluetooth: hci_core: Fix leaking sent_cmd skb

sent_cmd memory is not freed before freeing hci_dev causing it to leak
it contents.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c