USB: serial: cp210x: fix tiocmget error handling
commit85a2af9f690a27c064cc94e5526d18fc0887104f
authorJohan Hovold <johan@kernel.org>
Wed, 19 Oct 2016 13:45:07 +0000 (19 15:45 +0200)
committerSasha Levin <alexander.levin@verizon.com>
Sat, 26 Nov 2016 03:57:02 +0000 (25 22:57 -0500)
treebcbb71d4683f2bae0e78a8196e6d057a78dedecf
parent0854ce492ec3b7bc0e147fdc0b7ad98c94d903fb
USB: serial: cp210x: fix tiocmget error handling

[ Upstream commit de24e0a108bc48062e1c7acaa97014bce32a919f ]

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")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/usb/serial/cp210x.c