Skip to content

Commit

Permalink
PM / Hibernate: Enable usermodehelpers in software_resume() error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Srivatsa S. Bhat authored and Rafael J. Wysocki committed Dec 6, 2011
1 parent 953a206 commit 0118521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,10 @@ static int software_resume(void)
goto close_finish;

error = create_basic_memory_bitmaps();
if (error)
if (error) {
usermodehelper_enable();
goto close_finish;
}

pr_debug("PM: Preparing processes for restore.\n");
error = prepare_processes();
Expand Down

0 comments on commit 0118521

Please sign in to comment.