Files
linux/drivers
Johan Hovold 5ed8d41023 USB: serial: spcp8x5: fix modem-status handling
Make sure to detect short control transfers and return zero on success
when retrieving the modem status.

This fixes the TIOCMGET implementation which since e1ed212d85 ("USB:
spcp8x5: add proper modem-status support") has returned TIOCM_LE on
successful retrieval, and avoids leaking bits from the stack on short
transfers.

This also fixes the carrier-detect implementation which since the above
mentioned commit unconditionally has returned true.

Fixes: e1ed212d85 ("USB: spcp8x5: add proper modem-status support")
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
2017-01-16 16:38:56 +01:00
..
…
…
2016-12-25 10:47:44 +01:00
2017-01-11 09:14:19 +01:00
2017-01-06 14:34:52 +01:00
…
…
…
…
…
2016-12-25 10:47:44 +01:00
2016-12-25 17:21:22 +01:00
…
2016-12-25 17:21:22 +01:00
…
2017-01-13 15:17:04 -07:00
2016-12-25 17:21:22 +01:00
2016-12-25 10:47:44 +01:00
2016-12-25 17:21:22 +01:00
…
…
…
2016-12-25 17:21:22 +01:00
2016-12-25 17:21:22 +01:00
…
…
…
…
…
…
…
…
…
…