USB: serial: cp210x: fix tiocmget error handling
authorJohan Hovold <johan@kernel.org>
Wed, 19 Oct 2016 13:45:07 +0000 (15:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 22:33:09 +0000 (23:33 +0100)
commitdfa4b7ad66b0e7e511f447f92e0331109c3a0109
tree96a9831f0af5058cffb7342630416c699672bd0e
parent5c82a634f9d298a8c1c50c2fdf2df7aaf06525b8
USB: serial: cp210x: fix tiocmget error handling

commit de24e0a108bc48062e1c7acaa97014bce32a919f upstream.

The current tiocmget implementation would fail to report errors up the
stack and instead leaked a few bits from the stack as a mask of
modem-status flags.

Fixes: 39a66b8d22a3 ("[PATCH] USB: CP2101 Add support for flow control")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/usb/serial/cp210x.c