Bluetooth: hci_sync: cancel cmd_timer if hci_open failed
authorArchie Pusaka <apusaka@chromium.org>
Wed, 5 Oct 2022 07:09:47 +0000 (15:09 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 12 Dec 2022 22:19:23 +0000 (14:19 -0800)
commit97dfaf073f5881c624856ef293be307b6166115c
treeb56bdda44b5b021486b3fae7e693e2cba23ac8b6
parenteeb1aafe97fa6da558157d2eb18cce25878b8656
Bluetooth: hci_sync: cancel cmd_timer if hci_open failed

If a command is already sent, we take care of freeing it, but we
also need to cancel the timeout as well.

Signed-off-by: Archie Pusaka <apusaka@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c