Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60bccbed authored by Akinobu Mita's avatar Akinobu Mita Committed by Paul Mackerras
Browse files

[POWERPC] Use is_init() instead of pid==1



Use is_init() rather than hard coded pid comparison.

Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ded84bcb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr)
	 * generate the same exception over and over again and we get
	 * nowhere.  Better to kill it and let the kernel panic.
	 */
	if (current->pid == 1) {
	if (is_init(current)) {
		__sighandler_t handler;

		spin_lock_irq(&current->sighand->siglock);