Bluetooth: hci_core: Cancel sync command if sending a frame failed
authorBenjamin Berg <bberg@redhat.com>
Fri, 3 Dec 2021 14:59:01 +0000 (15:59 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 Dec 2021 18:41:59 +0000 (10:41 -0800)
commit2250abadd3508d6961f1aa56cf8cff59f0196cb8
tree7efa8e9fe7cc7020c723711599f5d04e4dd9867e
parent914b08b330d6722ed081e14580aae6fe66cd5946
Bluetooth: hci_core: Cancel sync command if sending a frame failed

If sending a frame failed any sync command associated with it will never
be completed. As such, cancel any such command immediately to avoid
timing out.

Signed-off-by: Benjamin Berg <bberg@redhat.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c