USB: serial: cp210x: fix tiocmget error handling
authorJohan Hovold <johan@kernel.org>
Wed, 19 Oct 2016 13:45:07 +0000 (15:45 +0200)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:14:38 +0000 (13:14 +0000)
commit567057b04f4a5cf26ca9089e6d0efb744ab2d980
treefe8ffc033a70ea178bad7b648066a501fbdbdef3
parentaabb786654ec7940361841825dc3f5993cb85095
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