diff options
author | Alex Smith <alex@alex-smith.me.uk> | 2014-07-23 09:40:07 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-07-30 17:27:34 -0400 |
commit | 65768a1a92cb12cbba87588927cf597a65d560aa (patch) | |
tree | 8b1b1b096656cb461de9704e2bd328b713cc6014 /arch/mips/kernel/ptrace.c | |
parent | 656ff9bef08c19a6471b49528dacb4cbbeb1e537 (diff) |
MIPS: ptrace: Test correct task's flags in task_user_regset_view()
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>
Diffstat (limited to 'arch/mips/kernel/ptrace.c')
-rw-r--r-- | arch/mips/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index 6063b112a6aa..8f2130a2bbd3 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c | |||
@@ -398,7 +398,7 @@ const struct user_regset_view *task_user_regset_view(struct task_struct *task) | |||
398 | #endif | 398 | #endif |
399 | 399 | ||
400 | #ifdef CONFIG_MIPS32_O32 | 400 | #ifdef CONFIG_MIPS32_O32 |
401 | if (test_thread_flag(TIF_32BIT_REGS)) | 401 | if (test_tsk_thread_flag(task, TIF_32BIT_REGS)) |
402 | return &user_mips_view; | 402 | return &user_mips_view; |
403 | #endif | 403 | #endif |
404 | 404 | ||