From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT7pe-0006ng-VP for qemu-devel@nongnu.org; Fri, 19 Apr 2013 05:42:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UT7pd-0007Iw-S4 for qemu-devel@nongnu.org; Fri, 19 Apr 2013 05:42:14 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:37816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT7pd-0007Ii-MT for qemu-devel@nongnu.org; Fri, 19 Apr 2013 05:42:13 -0400 Received: by mail-wi0-f172.google.com with SMTP id hq17so512286wib.17 for ; Fri, 19 Apr 2013 02:42:13 -0700 (PDT) Date: Fri, 19 Apr 2013 11:42:10 +0200 From: Stefan Hajnoczi Message-ID: <20130419094210.GF30143@stefanha-thinkpad.redhat.com> References: <1363888656-123910-1-git-send-email-petar.jovanovic@rt-rk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1363888656-123910-1-git-send-email-petar.jovanovic@rt-rk.com> Subject: Re: [Qemu-devel] [PATCH] linux-user: change do_semop to return target errno when unsuccessful List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Petar Jovanovic Cc: riku.voipio@linaro.org, qemu-devel@nongnu.org, petar.jovanovic@imgtec.com On Thu, Mar 21, 2013 at 06:57:36PM +0100, Petar Jovanovic wrote: > From: Petar Jovanovic > > do_semop() is called from two places, and one of these fails to convert > return error to target errno when semop fails. This patch changes the > function to always return target errno in case of an unsuccessful call. > > Signed-off-by: Petar Jovanovic > --- > linux-user/syscall.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Thanks, applied to the trivial patches tree: https://github.com/stefanha/qemu/commits/trivial-patches Stefan