diff options
author | John Ogness <john.ogness@linutronix.de> | 2022-11-16 19:21:49 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2022-12-02 13:25:02 +0300 |
commit | 6193bc90849a711e3b67bc6051e1bb0254c51f2a (patch) | |
tree | 666d32c46e5bd5bf9279530fd616d62c15a9e729 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 66857443699b34c8c5951dd421f1c528c9554bb5 (diff) | |
download | linux-6193bc90849a711e3b67bc6051e1bb0254c51f2a.tar.xz |
tty: serial: kgdboc: synchronize tty_find_polling_driver() and register_console()
Calling tty_find_polling_driver() can lead to uart_set_options() being
called (via the poll_init() callback of tty_operations) to configure the
uart. But uart_set_options() can also be called by register_console()
(via the setup() callback of console).
Take the console_list_lock to synchronize against register_console() and
also use it for console list traversal. This also ensures the console list
cannot change until the polling console has been chosen.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-38-john.ogness@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions