xtensa: use actual syscall number in do_syscall_trace_leave
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 4 Apr 2019 03:19:25 +0000 (20:19 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 4 Apr 2019 06:18:36 +0000 (23:18 -0700)
commit2201f31f2c6d6030cbd2f7085455e2172725b1c5
tree67ea0ee67367c7050fce6ec793967486108b43c1
parent79a3aaa7b82e3106be97842dedfd8429248896e6
xtensa: use actual syscall number in do_syscall_trace_leave

Syscall may alter pt_regs structure passed to it, resulting in a
mismatch between syscall entry end syscall exit entries in the ftrace.
Temporary restore syscall field of the pt_regs for the duration of
do_syscall_trace_leave.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/entry.S