diff options
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 4ebba7ca1dc9..48cee2004e97 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
@@ -3855,7 +3855,7 @@ EXPORT_SYMBOL(proc_clear_tty); | |||
3855 | void __proc_set_tty(struct task_struct *tsk, struct tty_struct *tty) | 3855 | void __proc_set_tty(struct task_struct *tsk, struct tty_struct *tty) |
3856 | { | 3856 | { |
3857 | if (tty) { | 3857 | if (tty) { |
3858 | tty->session = tsk->signal->session; | 3858 | tty->session = process_session(tsk); |
3859 | tty->pgrp = process_group(tsk); | 3859 | tty->pgrp = process_group(tsk); |
3860 | } | 3860 | } |
3861 | tsk->signal->tty = tty; | 3861 | tsk->signal->tty = tty; |