]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
parisc: Fix system shutdown halt
authorHelge Deller <deller@gmx.de>
Sat, 18 Mar 2017 16:13:27 +0000 (17:13 +0100)
committerHelge Deller <deller@gmx.de>
Sat, 18 Mar 2017 16:27:45 +0000 (17:27 +0100)
On those parisc machines which don't provide a software power off
function, the system currently kills the init process at the end of a
shutdown and unexpectedly restarts insteads of halting.
Fix it by adding a loop which will not return.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # 4.9+
arch/parisc/kernel/process.c

index 06f7ca7fe70b616b4d68353ae10dd5d409bbbcab..b76f503eee4a83c14d7f8156f339952e521a26ed 100644 (file)
@@ -142,6 +142,8 @@ void machine_power_off(void)
 
        printk(KERN_EMERG "System shut down completed.\n"
               "Please power this system off now.");
+
+       for (;;);
 }
 
 void (*pm_power_off)(void) = machine_power_off;