zephyr/subsys/usb
Jan Pohanka cd7461495f usb: fix possible deadlock in usb_transfer_sync()
Syncing here is done with a semaphore declared on a function stack
and released in a callback. In case of a cancelled transfer (eg.
cable disconnect) the callback is never called.

The fix introduces a periodic check if a transfer is still valid.

Signed-off-by: Jan Pohanka <xhpohanka@gmail.com>
2021-01-26 07:21:13 -05:00
..
class usb: cdc_acm: select features required for use 2021-01-05 09:40:36 -06:00
bos.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
CMakeLists.txt usb: add optional work queue 2020-09-16 13:32:22 -05:00
Kconfig usb: drivers: Fix ZLP handling for Nordic driver. 2020-11-17 18:06:26 +01:00
os_desc.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
os_desc.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
usb_descriptor.c code-guideline: Fixing code violation 10.4 Rule 2020-10-01 17:13:29 -04:00
usb_descriptor.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
usb_device.c usb: drivers: Fix ZLP handling for Nordic driver. 2020-11-17 18:06:26 +01:00
usb_transfer.c usb: fix possible deadlock in usb_transfer_sync() 2021-01-26 07:21:13 -05:00
usb_transfer.h usb: fix header language linkage 2020-09-16 13:32:22 -05:00
usb_work_q.c usb: add optional work queue 2020-09-16 13:32:22 -05:00
usb_work_q.h usb: add optional work queue 2020-09-16 13:32:22 -05:00