serial: 8250: Sanitize rs485 config harder
authorLukas Wunner <lukas@wunner.de>
Fri, 28 Feb 2020 13:31:04 +0000 (14:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2020 08:52:01 +0000 (09:52 +0100)
commit6d3e54e1955ed1cd2da9a90c944290e91772cbcb
tree6dd962e29ad98dafb9f33cf1b8ba2e3c6c382e3b
parent283e096ffb7077c2b677eee043ff36965e43d37b
serial: 8250: Sanitize rs485 config harder

Amend the generic ->rs485_config() callback to sanitize RTS polarity and
zero-fill the padding (in addition to the existing sanitization of the
RTS delays).

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Matwey V. Kornilov <matwey@sai.msu.ru>
Link: https://lore.kernel.org/r/ff833721bc372d38678f289eb2a44dbf016d5203.1582895077.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c