commit | cd8db057e93ddaacbec025b567490555d2bca280 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Thu Jan 12 14:56:18 2017 +0100 |
committer | Johan Hovold <johan@kernel.org> | Mon Jan 16 16:38:56 2017 +0100 |
tree | 873ec9859425b3b2769e36bcafb959a52ac3a25d | |
parent | 0d130367abf582e7cbf60075c2a7ab53817b1d14 [diff] |
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 <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>