Skip to content

Commit

Permalink
parisc: Fix system shutdown halt
Browse files Browse the repository at this point in the history
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+
  • Loading branch information
Helge Deller committed Mar 18, 2017
1 parent 74e3f6e commit 73580da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/parisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73580da

Please sign in to comment.