diff options
author | Pan Bian <bianpan2016@163.com> | 2021-01-21 10:34:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-04 13:37:25 +0300 |
commit | 78bbee8f254298c7edd35b631d0872c53f8f5039 (patch) | |
tree | 3ace07d0be74d12d0d99de1417560f010fd0c37a /Kconfig | |
parent | ba8832d23c97d1cadf174a526c4c82c2c626ad52 (diff) | |
download | linux-78bbee8f254298c7edd35b631d0872c53f8f5039.tar.xz |
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>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions