From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7kv4-0005jO-6M for qemu-devel@nongnu.org; Tue, 31 May 2016 10:45:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7kv2-0001Wo-AE for qemu-devel@nongnu.org; Tue, 31 May 2016 10:45:21 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:57454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7kv2-0001WP-29 for qemu-devel@nongnu.org; Tue, 31 May 2016 10:45:20 -0400 From: Peter Maydell Date: Tue, 31 May 2016 15:45:11 +0100 Message-Id: <1464705911-28960-4-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1464705911-28960-1-git-send-email-peter.maydell@linaro.org> References: <1464705911-28960-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 3/3] linux-user: Fix error conversion in 64-bit fadvise syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org, Riku Voipio Fix a missing host-to-target errno conversion in the 64-bit fadvise syscall emulation. Signed-off-by: Peter Maydell --- linux-user/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 638b455..31a9484 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9394,8 +9394,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, default: break; } #endif - ret = -posix_fadvise(arg1, arg2, arg3, arg4); - break; + ret = -host_to_target_errno(posix_fadvise(arg1, arg2, arg3, arg4)); + break; #endif #endif /* end of 64-bit ABI fadvise handling */ -- 1.9.1