Received: from eggs.gnu.org ([2001:4830:134:3::10]:57982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8Shi-0003XT-Cr for qemu-devel@nongnu.org; Thu, 02 Jun 2016 09:30:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8She-0003nJ-2D for qemu-devel@nongnu.org; Thu, 02 Jun 2016 09:30:30 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:59613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8Shd-0003nD-NH for qemu-devel@nongnu.org; Thu, 02 Jun 2016 09:30:25 -0400 References: <1464705911-28960-1-git-send-email-peter.maydell@linaro.org> <1464705911-28960-4-git-send-email-peter.maydell@linaro.org> From: Laurent Vivier Message-ID: Date: Thu, 2 Jun 2016 15:30:15 +0200 MIME-Version: 1.0 In-Reply-To: <1464705911-28960-4-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [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: Peter Maydell , qemu-devel@nongnu.org Cc: Riku Voipio , patches@linaro.org Le 31/05/2016 à 16:45, Peter Maydell a écrit : > 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 */ > > Reviewed-by: Laurent Vivier