Bluetooth: Put HCI device if inquiry procedure interrupts
authorPan Bian <bianpan2016@163.com>
Thu, 21 Jan 2021 08:10:45 +0000 (00:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:25 +0000 (11:37 +0100)
commit63cb4aa9e4eee4cf79a2adacf140ddb14dc23bc5
treec505a7231a4ba7b50938f0f0ff66e7ad131c102f
parent78bbee8f254298c7edd35b631d0872c53f8f5039
Bluetooth: Put HCI device if inquiry procedure interrupts

[ Upstream commit 28a758c861ff290e39d4f1ee0aa5df0f0b9a45ee ]

Jump to the label done to decrement the reference count of HCI device
hdev on path that the Inquiry procedure is interrupted.

Fixes: 3e13fa1e1fab ("Bluetooth: Fix hci_inquiry ioctl usage")
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/hci_core.c