aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorOliver Neukum <[email protected]>2024-05-02 13:51:40 +0200
committerGreg Kroah-Hartman <[email protected]>2024-05-03 07:35:37 +0200
commitb3e40fc85735b787ce65909619fcd173107113c2 (patch)
tree312550caf5b5b19dd79cc5c9622f0933e0dd0506 /scripts/gdb
parent080e73c9411b9ebc4c22e8ee8a12a9f109b85819 (diff)
USB: usb_parse_endpoint: ignore reserved bits
Reading bEndpointAddress the spec tells is that: b7 is direction, which must be ignored b6:4 are reserved which are to be set to zero b3:0 are the endpoint address In order to be backwards compatible with possible future versions of USB we have to be ready with devices using those bits. That means that we also have to ignore them like we do with the direction bit. In consequence the only illegal address you can encoding in four bits is endpoint zero, for which no descriptor must exist. Hence the check for exceeding the upper limit on endpoint addresses is removed. Signed-off-by: Oliver Neukum <[email protected]> Reviewed-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions