Files
twx-linux/drivers
Johan Hovold ea04bd7914 USB: serial: quatech2: fix control-message error handling
commit 8c34cb8ddf upstream.

Make sure to detect short control-message transfers when fetching
modem and line state in open and when retrieving registers.

This specifically makes sure that an errno is returned to user space on
errors in TIOCMGET instead of a zero bitmask.

Also drop the unused getdevice function which also lacked appropriate
error handling.

Fixes: f7a33e608d ("USB: serial: add quatech2 usb to serial driver")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-14 13:32:57 +02:00
..
…
…
2017-04-21 09:30:07 +02:00
…
…
…
…
…
…
…
2017-05-02 21:19:48 -07:00
…
…
…
2017-04-12 12:38:33 +02:00
…
2017-01-12 11:22:47 +01:00
2017-02-23 17:43:10 +01:00
…
…
…
…
…
…
…
…
2017-04-21 09:30:07 +02:00
…
…
…
…
…
…
…
2017-03-30 09:35:17 +02:00
…
…
…