Skip to content
Commit 22c0d015 authored by Kari Hulkko's avatar Kari Hulkko Committed by Anas Nashif
Browse files

usb: fix for parallel transfer deadlock with usb_transfer_sync()



Parallel transfer to same endpoint is not supported and
may cause a deadlock. Adding a check to prevent starting
the transfer if tranfer is already ongoing on same endpoint.

Transfer status was not checked when accessing to transfer
from endpoint callback. Adding status check, to prevent
a double completion.

Fixes #30736

Signed-off-by: default avatarKari Hulkko <kari.m.hulkko@gmail.com>
parent 77861037
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment