MIPS: ptrace: Test correct task's flags in task_user_regset_view()

commit 65768a1a92 upstream.

task_user_regset_view() should test for TIF_32BIT_REGS in the flags of
the specified task, not of the current task.

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7450/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alex Smith 2014-07-23 14:40:07 +01:00 committed by Greg Kroah-Hartman
parent 1b32e95f23
commit ca2bff9554
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ const struct user_regset_view *task_user_regset_view(struct task_struct *task)
#endif
#ifdef CONFIG_MIPS32_O32
if (test_thread_flag(TIF_32BIT_REGS))
if (test_tsk_thread_flag(task, TIF_32BIT_REGS))
return &user_mips_view;
#endif