USB: serial: cp210x: disable interface on errors in open
authorJohan Hovold <johan@kernel.org>
Mon, 13 Jul 2020 10:55:13 +0000 (12:55 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 14 Jul 2020 09:47:30 +0000 (11:47 +0200)
commitbcbb9d812eead97e1fc01b223c0c5586a4ff08d9
treeaaadae9dfb5494b5b4e9931a1b1207bdf3db61da
parenteb0c68ea4246252ba56951c6cf5e5d544a342e9e
USB: serial: cp210x: disable interface on errors in open

Try to disable the serial interface in the unlikely event that generic
open() fails.

Link: https://lore.kernel.org/r/20200713105517.27796-2-johan@kernel.org
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c