]> git.baikalelectronics.ru Git - kernel.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)
commit053345fd30f2e253f7860868ad6351de7736ab0e
tree209a3d0ca8d086b39060cd38890acdd16c516e33
parentdff30ec3e055040e965b32035b4eca19396c26ca
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: b309849f874f ("[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