Merge to Fedora kernel-2.6.18-1.2255_FC5-vs2.0.2.2-rc9 patched with stable patch...
[linux-2.6.git] / arch / mips / kernel / sysirix.c
index 59e2da8..3371005 100644 (file)
@@ -583,7 +583,7 @@ out:
 
 asmlinkage int irix_getpid(struct pt_regs *regs)
 {
-       regs->regs[3] = current->parent->pid;
+       regs->regs[3] = current->real_parent->pid;
        return current->pid;
 }