]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:38 +0000 (18:22 +0100)
commit39bce4ab06e3874746c08d9a0a0564809e2b32a1
treec181f130d45d313549a9235e77f53882a92589d3
parent9514233d258fddce3928b86ee8d4611a5597c80b
Bluetooth: drop HCI device reference before return

[ Upstream commit 5a3ef03afe7e12982dc3b978f4c5077c907f7501 ]

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

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