USB: serial: cp210x: fix tiocmget error handling
authorJohan Hovold <johan@kernel.org>
Wed, 19 Oct 2016 13:45:07 +0000 (15:45 +0200)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 24 Nov 2016 03:56:56 +0000 (22:56 -0500)
commit1f601388d5c150f0cef255bdb1a9296bdab9e157
tree55e5b6a95f36632005acb3355586349b851852c0
parentd95841d1158bf0234198a4491471f5f3ab3de7fa
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