MIPS: Fix syscall_get_nr for the syscall exit tracing.
authorLars Persson <lars.persson@axis.com>
Tue, 3 Feb 2015 16:08:17 +0000 (17:08 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 4 Feb 2015 15:40:09 +0000 (16:40 +0100)
commitc2d9f17757310484ab4fd65954f5f9850f6a1349
tree93df833f0fdbddb083326d14eff6585d086e3186
parent26f7c4bd05cf34e63a4a794150ab66a40a5a84a9
MIPS: Fix syscall_get_nr for the syscall exit tracing.

Register 2 is alredy overwritten by the return value when
syscall_trace_leave() is called.

Signed-off-by: Lars Persson <larper@axis.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9187/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/syscall.h
arch/mips/include/asm/thread_info.h
arch/mips/kernel/ptrace.c