]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: serial: cp210x: fix tiocmget error handling
authorJohan Hovold <johan@kernel.org>
Wed, 19 Oct 2016 13:45:07 +0000 (15:45 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 20 Oct 2016 09:15:20 +0000 (11:15 +0200)
commitde24e0a108bc48062e1c7acaa97014bce32a919f
tree209a3d0ca8d086b39060cd38890acdd16c516e33
parentca006f785fbfd7a5c901900bd3fe2b26e946a1ee
USB: serial: cp210x: fix tiocmget error handling

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>
drivers/usb/serial/cp210x.c