public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: use is_init()
@ 2006-12-19  8:35 Akinobu Mita
  2006-12-20  4:06 ` Paul Mackerras
  0 siblings, 1 reply; 3+ messages in thread
From: Akinobu Mita @ 2006-12-19  8:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paul Mackerras, Anton Blanchard

Use is_init() rather than hard coded pid comparison.

Cc: Paul Mackerras <paulus@samba.org>
Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>

---
 arch/powerpc/kernel/traps.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: 2.6-mm/arch/powerpc/kernel/traps.c
===================================================================
--- 2.6-mm.orig/arch/powerpc/kernel/traps.c
+++ 2.6-mm/arch/powerpc/kernel/traps.c
@@ -174,7 +174,7 @@ void _exception(int signr, struct pt_reg
 	 * 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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-12-20  7:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-19  8:35 [PATCH] powerpc: use is_init() Akinobu Mita
2006-12-20  4:06 ` Paul Mackerras
2006-12-20  7:49   ` Akinobu Mita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox