mirror of
https://github.com/torvalds/linux.git
synced 2026-09-11 20:13:02 +02:00
printk/nbcon: Flush nbcon_irq_work in nbcon_free()
Ensure any pending nbcon_irq_work is flushed before allowing the console to be recycled. Signed-off-by: John Ogness <john.ogness@linutronix.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://patch.msgid.link/20260901093245.344455-2-john.ogness@linutronix.de Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
parent
77ae27fd98
commit
0433632bbe
|
|
@ -1837,6 +1837,8 @@ void nbcon_free(struct console *con)
|
|||
/* Synchronize the kthread stop. */
|
||||
lockdep_assert_console_list_lock_held();
|
||||
|
||||
irq_work_sync(&con->irq_work);
|
||||
|
||||
if (printk_kthreads_running) {
|
||||
nbcon_kthread_stop(con);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user