]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3be72281027b20c127fc2d96e8a18524dfa4a8cb
tree0d7da6913d354ba81d90cc72db9a2ae7e7339cd5
parent456e7c0345dcc11a2198448ace9c1cba61712516
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: cad48035eea3 ("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