]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PM / Hibernate: Enable usermodehelpers in software_resume() error path
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Thu, 1 Dec 2011 21:32:43 +0000 (22:32 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 1 Dec 2011 21:32:43 +0000 (22:32 +0100)
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>
kernel/power/hibernate.c

index 80c2d9029de28a91bc307b6654d3fdfc2d610348..df781214ff83de1c6a0bc4dc4fcfb4723275449a 100644 (file)
@@ -796,8 +796,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 = freeze_processes();