summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/consoleearlysuspend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/consoleearlysuspend.c b/kernel/power/consoleearlysuspend.c
index a8befb419158..a3edcb267389 100644
--- a/kernel/power/consoleearlysuspend.c
+++ b/kernel/power/consoleearlysuspend.c
@@ -33,7 +33,7 @@ static void console_early_suspend(struct early_suspend *h)
goto err;
release_console_sem();
- if (vt_waitactive(EARLY_SUSPEND_CONSOLE))
+ if (vt_waitactive(EARLY_SUSPEND_CONSOLE + 1))
pr_warning("console_early_suspend: Can't switch VCs.\n");
return;
err:
@@ -52,7 +52,7 @@ static void console_late_resume(struct early_suspend *h)
return;
}
- if (vt_waitactive(orig_fgconsole))
+ if (vt_waitactive(orig_fgconsole + 1))
pr_warning("console_late_resume: Can't switch VCs.\n");
}