aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/printk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 8212c1aef125..d37d45c90ae6 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -1369,9 +1369,9 @@ static int console_trylock_for_printk(unsigned int cpu)
1369 } 1369 }
1370 } 1370 }
1371 logbuf_cpu = UINT_MAX; 1371 logbuf_cpu = UINT_MAX;
1372 raw_spin_unlock(&logbuf_lock);
1372 if (wake) 1373 if (wake)
1373 up(&console_sem); 1374 up(&console_sem);
1374 raw_spin_unlock(&logbuf_lock);
1375 return retval; 1375 return retval;
1376} 1376}
1377 1377