]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Reset more state when cancelling a sync command
authorBenjamin Berg <bberg@redhat.com>
Fri, 3 Dec 2021 14:58:59 +0000 (15:58 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 Dec 2021 18:41:59 +0000 (10:41 -0800)
commitb0b7a7f8e94f72bf9e0ef889724defe785ee54e5
tree5f19ae66b4ba2da658d22710ca5b0edf8588dc91
parent23d47736fb1404cc0b9c1b6cba26491f275230b3
Bluetooth: Reset more state when cancelling a sync command

Resetting the timers and cmd_cnt means that we assume the device will be
in a good state after the sync command finishes. Without this a chain of
synchronous commands might get stuck if one of them is cancelled.

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