diff options
author | Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> | 2011-12-01 16:32:43 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-12-06 16:07:51 -0500 |
commit | 0118521cc7acb3ccbc1a01d6144ac32be9d56a4c (patch) | |
tree | 2345c7754856f34efc7ac8f1ced88febb99d25ff /kernel/power | |
parent | 953a206393b1533ceb0e7d725cc5a8c8d7ed97dd (diff) |
PM / Hibernate: Enable usermodehelpers in software_resume() error path
In the software_resume() function defined in kernel/power/hibernate.c,
if the call to create_basic_memory_bitmaps() fails, the usermodehelpers
are not enabled (which had been disabled in the previous step). Fix it.
Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/hibernate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index ebf62c3bc9f7..1fcf9de4506d 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c | |||
@@ -807,8 +807,10 @@ static int software_resume(void) | |||
807 | goto close_finish; | 807 | goto close_finish; |
808 | 808 | ||
809 | error = create_basic_memory_bitmaps(); | 809 | error = create_basic_memory_bitmaps(); |
810 | if (error) | 810 | if (error) { |
811 | usermodehelper_enable(); | ||
811 | goto close_finish; | 812 | goto close_finish; |
813 | } | ||
812 | 814 | ||
813 | pr_debug("PM: Preparing processes for restore.\n"); | 815 | pr_debug("PM: Preparing processes for restore.\n"); |
814 | error = prepare_processes(); | 816 | error = prepare_processes(); |