Commit 7bb6405
USB: serial: io_edgeport: fix descriptor error handling
commit 3c0e25d883d06a1fbd1ad35257e8abaa57befb37 upstream.
Make sure to detect short control-message transfers and log an error
when reading incomplete manufacturer and boot descriptors.
Note that the default all-zero descriptors will now be used after a
short transfer is detected instead of partially initialised ones.
Fixes: 1da177e ("Linux-2.6.12-rc2")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 574c8b2 commit 7bb6405
1 file changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2109 | 2109 | | |
2110 | 2110 | | |
2111 | 2111 | | |
2112 | | - | |
2113 | | - | |
| 2112 | + | |
2114 | 2113 | | |
2115 | 2114 | | |
2116 | 2115 | | |
| |||
2135 | 2134 | | |
2136 | 2135 | | |
2137 | 2136 | | |
2138 | | - | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
2139 | 2140 | | |
| 2141 | + | |
2140 | 2142 | | |
2141 | 2143 | | |
2142 | 2144 | | |
2143 | 2145 | | |
| 2146 | + | |
| 2147 | + | |
2144 | 2148 | | |
2145 | 2149 | | |
2146 | 2150 | | |
| |||
2597 | 2601 | | |
2598 | 2602 | | |
2599 | 2603 | | |
2600 | | - | |
2601 | | - | |
2602 | | - | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
2603 | 2608 | | |
2604 | 2609 | | |
2605 | 2610 | | |
| |||
2656 | 2661 | | |
2657 | 2662 | | |
2658 | 2663 | | |
2659 | | - | |
2660 | | - | |
2661 | | - | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
2662 | 2668 | | |
2663 | 2669 | | |
2664 | 2670 | | |
| |||
0 commit comments