Commit bbf860e
usb: gadget: Use correct endianness of the wLength field for WebUSB
WebUSB code uses wLength directly without proper endianness conversion.
Update it to use already prepared temporary variable w_length instead.
Fixes: 93c4739 ("usb: gadget: add WebUSB landing page support")
Signed-off-by: Andy Shevchenko <[email protected]>
Tested-By: Jó Ágila Bitsch <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent a37eb61 commit bbf860e
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2079 | 2079 | | |
2080 | 2080 | | |
2081 | 2081 | | |
2082 | | - | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
2086 | 2085 | | |
2087 | 2086 | | |
2088 | 2087 | | |
| |||
0 commit comments