ARC: entry: fix syscall_trace_exit argument
authorSergey Matyukevich <sergey.matyukevich@synopsys.com>
Thu, 14 Apr 2022 08:17:22 +0000 (11:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 11:39:45 +0000 (13:39 +0200)
commitf6331cd8f57d3b1876ba7a27bc4705cfcfb84de5
tree0f2afad445ed558d2877659919fe697d553e0bda
parent7fd6aab48bbf955a6ce1a2a7979fd916bb7ba6e9
ARC: entry: fix syscall_trace_exit argument

commit b1c6ecfdd06907554518ec384ce8e99889d15193 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/kernel/entry.S