Commit cd8db05
committed
USB: serial: mos7840: fix control-message error handling
Make sure to detect short transfers when reading a device register.
The modem-status handling had sufficient error checks in place, but move
handling of short transfers into the register accessor function itself
for consistency.
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>1 parent 0d13036 commit cd8db05
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
287 | 293 | | |
288 | 294 | | |
289 | | - | |
| 295 | + | |
290 | 296 | | |
291 | 297 | | |
292 | 298 | | |
| |||
352 | 358 | | |
353 | 359 | | |
354 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
355 | 366 | | |
356 | | - | |
| 367 | + | |
357 | 368 | | |
358 | 369 | | |
359 | 370 | | |
| |||
1479 | 1490 | | |
1480 | 1491 | | |
1481 | 1492 | | |
1482 | | - | |
| 1493 | + | |
1483 | 1494 | | |
1484 | 1495 | | |
1485 | | - | |
| 1496 | + | |
1486 | 1497 | | |
1487 | 1498 | | |
1488 | 1499 | | |
| |||
0 commit comments