]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: drop HCI device reference before return
authorPan Bian <bianpan2016@163.com>
Thu, 21 Jan 2021 07:34:19 +0000 (23:34 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 25 Jan 2021 15:13:52 +0000 (16:13 +0100)
commit26195d3da726de050aa04a6004889c0988135746
tree114c8ddbfb84001476996c03056fb556f25ceece
parent2d33bc8a9b1b7df7604f63d898fd8873d57458c0
Bluetooth: drop HCI device reference before return

Call hci_dev_put() to decrement reference count of HCI device hdev if
fails to duplicate memory.

Fixes: b63a3e145808 ("Bluetooth: AMP: Handle Accept phylink command status evt")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/a2mp.c