Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: device_next: check wLength on Set Address
Set Address behavior is not specified when wValue is greater than 127, or if wIndex or wLength are non-zero. USB stack did check wValue and wLength but didn't care about wIndex value. Extend the check so non-zero wIndex also results in STALL response. Signed-off-by: Tomasz Moń <[email protected]>
- Loading branch information