Received: from eggs.gnu.org ([2001:4830:134:3::10]:52116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkY2H-0005z7-CC for qemu-devel@nongnu.org; Thu, 15 Sep 2016 10:53:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkY2C-0003FY-FV for qemu-devel@nongnu.org; Thu, 15 Sep 2016 10:53:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkY2C-0003F5-98 for qemu-devel@nongnu.org; Thu, 15 Sep 2016 10:53:04 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 15 Sep 2016 18:52:52 +0400 Message-Id: <20160915145252.12281-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] linux-user: fix settime old value location List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: riku.voipio@linaro.org, erikd@mega-nerd.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= old_value is the 4th argument of timer_settime(), not the 2nd. Signed-off-by: Marc-Andr=C3=A9 Lureau --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ca06943..345e971 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11679,7 +11679,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_l= ong arg1, target_to_host_itimerspec(&hspec_new, arg3); ret =3D get_errno( timer_settime(htimer, arg2, &hspec_new, &hspec= _old)); - host_to_target_itimerspec(arg2, &hspec_old); + host_to_target_itimerspec(arg4, &hspec_old); } break; } --=20 2.10.0