aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLukas Wunner <[email protected]>2020-02-28 14:31:01 +0100
committerGreg Kroah-Hartman <[email protected]>2020-03-07 09:52:01 +0100
commitf45709df7731ad36306a28a3e1af7309d55c35f5 (patch)
tree2aa45c7185e054b6e5f6007e324c878e67eaa1ac /tools/perf/scripts/python
parentf8c3686c65f099f0915bbf96885765594d675d5b (diff)
serial: 8250: Don't touch RTS modem control while in rs485 mode
serial8250_do_set_mctrl() currently allows modifying the RTS modem control line even when RTS is used as an rs485 Transmit Enable signal. It is thus possible for user space to interfere with rs485 communication by invoking a TIOCMSET ioctl(). Ignore such change requests and retain the current RTS polarity when in rs485 mode. Note that serial8250_set_mctrl() is always called with port->lock held, so there's no risk that RTS is changed concurrently. Signed-off-by: Lukas Wunner <[email protected]> Cc: Matwey V. Kornilov <[email protected]> Link: https://lore.kernel.org/r/b1ce34ca9bc4d7bdc6e9852fcf30b1f4e37c8a80.1582895077.git.lukas@wunner.de Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions