traps: x86_64: use task_pid_nr(tsk) instead of tsk->pid in do_general_protection
authorAlexander van Heukelum <heukelum@fastmail.fm>
Fri, 3 Oct 2008 20:00:37 +0000 (22:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:33:26 +0000 (10:33 +0200)
Use task_pid_nr(tsk) instead of tsk->pid in do_general_protection.

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/traps_64.c

index 7853f488cd6c56fe350ae17de9f1c1cf1468dc29..71c2629997b3332258e51737cef3d8f3eff18009 100644 (file)
@@ -204,7 +204,7 @@ do_general_protection(struct pt_regs *regs, long error_code)
                        printk_ratelimit()) {
                printk(KERN_INFO
                        "%s[%d] general protection ip:%lx sp:%lx error:%lx",
-                       tsk->comm, tsk->pid,
+                       tsk->comm, task_pid_nr(tsk),
                        regs->ip, regs->sp, error_code);
                print_vma_addr(" in ", regs->ip);
                printk("\n");