MIPS: ptrace: Test correct task's flags in task_user_regset_view()
authorAlex Smith <alex@alex-smith.me.uk>
Wed, 23 Jul 2014 13:40:07 +0000 (14:40 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2014 21:27:34 +0000 (23:27 +0200)
commit65768a1a92cb12cbba87588927cf597a65d560aa
tree8b1b1b096656cb461de9704e2bd328b713cc6014
parent656ff9bef08c19a6471b49528dacb4cbbeb1e537
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>
arch/mips/kernel/ptrace.c