Skip to content
Commit cd746149 authored by Jan Pohanka's avatar Jan Pohanka Committed by Anas Nashif
Browse files

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: default avatarJan Pohanka <xhpohanka@gmail.com>
parent 1584c806
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment