lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 15 Sep 2007 21:17:39 +0200 From: "Rafael J. Wysocki" <rjw@...k.pl> To: Andrew Morton <akpm@...ux-foundation.org> Cc: Pavel Machek <pavel@....cz>, Len Brown <lenb@...nel.org>, pm list <linux-pm@...ts.linux-foundation.org>, ACPI Devel Maling List <linux-acpi@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org> Subject: [PATCH -mm] Hibernation: Resume consoles if hibernation_platform_enter fails [This is a fix on top of hibernation-enter-platform-hibernation-state-in-a-consistent-way-rev-4.patch] --- From: Rafael J. Wysocki <rjw@...k.pl> If hibernation_platform_enter() fails, consoles should be resumed so that diagnostic information related to the failure is available to the user. Signed-off-by: Rafael J. Wysocki <rjw@...k.pl> --- kernel/power/disk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux-2.6.23-rc6/kernel/power/disk.c =================================================================== --- linux-2.6.23-rc6.orig/kernel/power/disk.c +++ linux-2.6.23-rc6/kernel/power/disk.c @@ -293,7 +293,7 @@ int hibernation_platform_enter(void) suspend_console(); error = device_suspend(PMSG_SUSPEND); if (error) - return error; + goto Resume_console; error = hibernation_ops->prepare(); if (error) @@ -320,6 +320,8 @@ int hibernation_platform_enter(void) hibernation_ops->finish(); Resume_devices: device_resume(); + Resume_console: + resume_console(); return error; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists