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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:14 +0000 (09:19 -0700)
commitca2bff955468169da9150e8f4bc616e55ff9e99d
tree3b1c2df03e8fe40a51ac7cff4e01d05d498ad64b
parent1b32e95f23f40f9d932fd46bf6495c8151dccd64
MIPS: ptrace: Test correct task's flags in task_user_regset_view()

commit 65768a1a92cb12cbba87588927cf597a65d560aa 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>
arch/mips/kernel/ptrace.c