]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: cp210x: fix flow-control error handling
authorJohan Hovold <johan@kernel.org>
Mon, 5 Jul 2021 08:20:11 +0000 (10:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Sep 2021 06:52:39 +0000 (08:52 +0200)
commitbb6eb160c0d043e798b508b00b28ff658110320d
treec9b6f110a8174423513f99a9d31aa278ca3a9796
parent363715aee0ef89bdd871dfbf7ba6ce25de18bb40
USB: serial: cp210x: fix flow-control error handling

commit ba4bbdabecd11530dca78dbae3ee7e51ffdc0a06 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/cp210x.c