From: Andrew Morton Signed-off-by: Andrew Morton --- include/linux/tty.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/tty.h~add-process_session-helper-routine-deprecate-old-field-fix-warnings-2 include/linux/tty.h --- a/include/linux/tty.h~add-process_session-helper-routine-deprecate-old-field-fix-warnings-2 +++ a/include/linux/tty.h @@ -352,7 +352,7 @@ static inline void __proc_set_tty(struct task_struct *tsk, struct tty_struct *tty) { if (tty) { - tty->session = tsk->signal->session; + tty->session = process_session(tsk); tty->pgrp = process_group(tsk); } tsk->signal->tty = tty; _