]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/proc/array.c
Merge branch 'for-linus' of ssh://master.kernel.org/pub/scm/linux/kernel/git/ieee1394...
[linux-2.6-omap-h63xx.git] / fs / proc / array.c
index 70e4fab117b154ec0379aea1f924e5f021195e7e..07c9cdbcdcac6f6a2be5fa40f97a340b2f5980a4 100644 (file)
@@ -351,7 +351,7 @@ static int do_task_stat(struct task_struct *task, char * buffer, int whole)
                struct signal_struct *sig = task->signal;
 
                if (sig->tty) {
-                       tty_pgrp = sig->tty->pgrp;
+                       tty_pgrp = pid_nr(sig->tty->pgrp);
                        tty_nr = new_encode_dev(tty_devnum(sig->tty));
                }