USB: serial: ssu100: fix control-message error handling
authorJohan Hovold <johan@kernel.org>
Thu, 12 Jan 2017 13:56:22 +0000 (14:56 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 16 Jan 2017 15:38:57 +0000 (16:38 +0100)
commit1eac5c244f705182d1552a53e2f74e2775ed95d6
tree0d7da6913d354ba81d90cc72db9a2ae7e7339cd5
parent5ed8d41023751bdd3546f2fe4118304357efe8d2
USB: serial: ssu100: fix control-message error handling

Make sure to detect short control-message transfers rather than continue
with zero-initialised data when retrieving modem status and during
device initialisation.

Fixes: 52af95459939 ("USB: add USB serial ssu100 driver")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ssu100.c