aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_buffer.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2022-06-06 10:04:33 +0000
committerGreg Kroah-Hartman <[email protected]>2022-06-10 11:49:58 +0000
commit84f2faa7852e1f55d89bb0c99b3a672b87b11f87 (patch)
tree753be0cd9b3d2703c90fde4a1a31d59024c7b0d4 /drivers/tty/tty_buffer.c
parentserial: sc16is7xx: Remove serial_rs485 assignment (diff)
downloadkernel-84f2faa7852e1f55d89bb0c99b3a672b87b11f87.tar.gz
kernel-84f2faa7852e1f55d89bb0c99b3a672b87b11f87.zip
serial: 8250: Remove serial_rs485 sanitization from em485
Serial core handles serial_rs485 sanitization. When em485 init fails, there are two possible paths of entry: 1) uart_rs485_config (init path) that fully clears port->rs485 on error. 2) ioctl path with a pre-existing, valid port->rs485 unto which the kernel falls back on error and port->rs485 should therefore be kept untouched. The temporary rs485 struct is not returned to userspace in case of error so its flag don't matter. ...Thus SER_RS485_ENABLED clearing on error can/should be dropped. Signed-off-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
0 files changed, 0 insertions, 0 deletions