]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: serial: kobil_sct: fix modem-status error handling
authorJohan Hovold <johan@kernel.org>
Wed, 4 Jul 2018 15:02:18 +0000 (17:02 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 6 Jul 2018 08:42:24 +0000 (10:42 +0200)
commita420b5d939ee58f1d950f0ea782834056520aeaa
tree2e61cc06b0d56fe2ab9d19e979bb2527060d7313
parent1d1de580a3e0b1cfacd63b4093573d8f327b0a1a
USB: serial: kobil_sct: fix modem-status error handling

Make sure to return -EIO in case of a short modem-status read request.

While at it, split the debug message to not include the (zeroed)
transfer-buffer content in case of errors.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/kobil_sct.c