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: NPan Bian <bianpan2016@163.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Showing
想要评论请 注册 或 登录