diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index db4b9b8929ebf9afb425e36c3908b9f3ca1908e9..4d818642ac0ea95b34f74f761da219835578addd 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2397,7 +2397,7 @@ void console_unlock(void) if (console_lock_spinning_disable_and_check()) { printk_safe_exit_irqrestore(flags); - return; + goto out; } printk_safe_exit_irqrestore(flags); @@ -2430,6 +2430,7 @@ void console_unlock(void) if (retry && console_trylock()) goto again; +out: if (wake_klogd) wake_up_klogd(); }