USB: serial: cp210x: fix flow-control error handling
authorJohan Hovold <johan@kernel.org>
Mon, 5 Jul 2021 08:20:11 +0000 (10:20 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 30 Jul 2021 15:19:31 +0000 (17:19 +0200)
commitba4bbdabecd11530dca78dbae3ee7e51ffdc0a06
tree249f0f24d574f49cc45fdfa105b172e413a7ee4e
parent2d9a00705910ccea2dc5d9cba5469ff2de72fc87
USB: serial: cp210x: fix flow-control error handling

Make sure that the driver crtscts state is not updated in the unlikely
event that the flow-control request fails. Not doing so could break RTS
control.

Fixes: 5951b8508855 ("USB: serial: cp210x: suppress modem-control errors")
Cc: stable@vger.kernel.org # 5.11
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c