Skip to content

Commit

Permalink
MIPS: ptrace: Test correct task's flags in task_user_regset_view()
Browse files Browse the repository at this point in the history
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: <stable@vger.kernel.org> # v3.13+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7450/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Alex Smith authored and Ralf Baechle committed Jul 30, 2014
1 parent 656ff9b commit 65768a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,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

Expand Down

0 comments on commit 65768a1

Please sign in to comment.