On Mon 2022-11-07 15:22:35, John Ogness wrote: > 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@xxxxxxxxxxxxx> Huh, this is a maze of related calls. At least for me. But the change seems to be correct. Reviewed-by: Petr Mladek <pmladek@xxxxxxxx> Best Regards, Petr