ARC: entry: fix syscall_trace_exit argument
authorSergey Matyukevich <sergey.matyukevich@synopsys.com>
Thu, 14 Apr 2022 08:17:22 +0000 (11:17 +0300)
committerVineet Gupta <vgupta@kernel.org>
Mon, 18 Apr 2022 19:14:20 +0000 (12:14 -0700)
commitb1c6ecfdd06907554518ec384ce8e99889d15193
tree64adca49b26e376e25235e5173850081ffadc296
parentce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e
ARC: entry: fix syscall_trace_exit argument

Function syscall_trace_exit expects pointer to pt_regs. However
r0 is also used to keep syscall return value. Restore pointer
to pt_regs before calling syscall_trace_exit.

Cc: <stable@vger.kernel.org>
Signed-off-by: Sergey Matyukevich <sergey.matyukevich@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
arch/arc/kernel/entry.S