From patchwork Wed Jan 18 15:02:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9524065 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5D9516020A for ; Wed, 18 Jan 2017 15:03:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FC7F285B6 for ; Wed, 18 Jan 2017 15:03:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 431A7285EF; Wed, 18 Jan 2017 15:03:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DFF3A285B6 for ; Wed, 18 Jan 2017 15:03:18 +0000 (UTC) Received: from localhost ([::1]:41952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTrle-00045C-1Y for patchwork-qemu-devel@patchwork.kernel.org; Wed, 18 Jan 2017 10:03:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTrl6-00043e-7u for qemu-devel@nongnu.org; Wed, 18 Jan 2017 10:02:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTrl3-0001yA-3i for qemu-devel@nongnu.org; Wed, 18 Jan 2017 10:02:44 -0500 Received: from mail-yw0-x243.google.com ([2607:f8b0:4002:c05::243]:34782) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTrl2-0001xh-VX for qemu-devel@nongnu.org; Wed, 18 Jan 2017 10:02:41 -0500 Received: by mail-yw0-x243.google.com with SMTP id v73so1191209ywg.1 for ; Wed, 18 Jan 2017 07:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZKWNRDTNZAtVXs8ebaCrXjGEgLOXkjwZHnQg39qJdCg=; b=WHsgWu8vakrGVNaAkoG3gvRabOCB7ssryDwEYYnv74zr2NXwtp3G+L4j8s+gYCI+Lv paFp4Dzs2grlEcpjhzOmPiEv+nuulGp3kXyECzHcO5CQYiTZI1zGe0XaRUzHzEQl/gsx Pdz0G+sYvS1yngYH9o+YraOX9BUANrFM1XT3fxtKhrSOfk9g88gjl7vO9DSOJEUQv7oy OY7mEFZIBOjoiSPPfXIm1DfkqTckMpPILpqhCwqtjYvabIcfVFgbnoBEz/7YSJxY2NhK RyWVztXI1/T+z4zg5jOt9/kV7upmHd5Iwu3TWRaNu+0UhGyv/9CpXk7o/NWPX21EAYBk dMHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZKWNRDTNZAtVXs8ebaCrXjGEgLOXkjwZHnQg39qJdCg=; b=tQriHWqU4n/mFi9y6p1yaL6HxzVpA8c7Vl3OomFbref/Sfg/bBpOj+WdxcesE4jDyc o8OHBpvpS93Djxz2ylEyLYbXpzSuO9Q82xl3ZMaVeQLyx9vmi6LHo4wvMecy/+aPil6i 6EP3QTo2ve2uGz6Db8AOTGlEPdy1ZwBDBsZJHONEwPB5Zx7Q3qGcYZmtXUpJPaV5cXqn qpwFarh5xJbSN4vLB3BnbkbuEuHRkoe+HRdo78kAYz8AFnH27J2tbsq2FWFfCRwm6OwX Z0WeYNYHYUwOVWuWKgPmJGpwFzY1qY87eid9OJG/S/0X3YIq2eySmiQpX9/9lM9Bzz/+ VL/Q== X-Gm-Message-State: AIkVDXIGltfTJGIvCrFeFNCZFcsPRacxNuyPwn2mNUuw/60KFPGYGSmEFj7XB7GxEw7dgA== X-Received: by 10.129.122.78 with SMTP id v75mr3036291ywc.67.1484751758644; Wed, 18 Jan 2017 07:02:38 -0800 (PST) Received: from localhost.localdomain (c-73-207-178-95.hsd1.ga.comcast.net. [73.207.178.95]) by smtp.gmail.com with ESMTPSA id v24sm243146ywh.22.2017.01.18.07.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 07:02:38 -0800 (PST) From: Pranith Kumar To: alex.bennee@linaro.org Date: Wed, 18 Jan 2017 10:02:34 -0500 Message-Id: <20170118150235.23850-1-bobby.prani@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::243 Subject: [Qemu-devel] [PATCH 1/2] linux-user: fix settime old value location X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Marc-André Lureau old_value is the 4th argument of timer_settime(), not the 2nd. Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar --- 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 7b77503f94..5bd477a71b 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -12027,7 +12027,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, target_to_host_itimerspec(&hspec_new, arg3); ret = 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; }