From: Helge Deller Date: Sat, 18 Mar 2017 16:13:27 +0000 (+0100) Subject: parisc: Fix system shutdown halt X-Git-Tag: v4.11-rc3~3^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=73580dac7618;p=karo-tx-linux.git parisc: Fix system shutdown halt 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 Cc: stable@vger.kernel.org # 4.9+ --- diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c index 06f7ca7fe70b..b76f503eee4a 100644 --- a/arch/parisc/kernel/process.c +++ b/arch/parisc/kernel/process.c @@ -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;