Skip to content
Commit 5a3ef03a authored by Pan Bian's avatar Pan Bian Committed by Marcel Holtmann
Browse files

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: 0b26ab9d ("Bluetooth: AMP: Handle Accept phylink command status evt")
Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent bf6a4e30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment