xtensa: fix syscall_set_return_value
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 14 Nov 2019 23:05:40 +0000 (15:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 10:04:35 +0000 (11:04 +0100)
commitbae1e47136ef7a61aab20018fd54176076433e3a
treee8a920473b4e0a34302d57bd9245c1559de85f1a
parent147128e77510ead2ca58311f3ff8e8472f2c154a
xtensa: fix syscall_set_return_value

commit c2d9aa3b6e56de56c7f1ed9026ca6ec7cfbeef19 upstream.

syscall return value is in the register a2, not a0.

Cc: stable@vger.kernel.org # v5.0+
Fixes: 9f24f3c1067c ("xtensa: implement tracehook functions and enable HAVE_ARCH_TRACEHOOK")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/include/asm/syscall.h