Received: from eggs.gnu.org ([2001:4830:134:3::10]:52375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2zSV-0001Wp-I3 for qemu-devel@nongnu.org; Tue, 14 Jan 2014 03:34:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2zSN-0007xw-9W for qemu-devel@nongnu.org; Tue, 14 Jan 2014 03:34:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2zSN-0007xr-0l for qemu-devel@nongnu.org; Tue, 14 Jan 2014 03:34:43 -0500 From: Markus Armbruster References: <1389610059-27806-1-git-send-email-stefanha@redhat.com> Date: Tue, 14 Jan 2014 09:34:38 +0100 In-Reply-To: <1389610059-27806-1-git-send-email-stefanha@redhat.com> (Stefan Hajnoczi's message of "Mon, 13 Jan 2014 18:47:39 +0800") Message-ID: <87r48bkllt.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] dataplane: fix shadowed return value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Paolo Bonzini , qemu-devel@nongnu.org, Peter Maydell Stefan Hajnoczi writes: > Propagate the error return value from get_indirect(). > > Signed-off-by: Stefan Hajnoczi > --- > hw/virtio/dataplane/vring.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/virtio/dataplane/vring.c b/hw/virtio/dataplane/vring.c > index 250d45e..665a1ff 100644 > --- a/hw/virtio/dataplane/vring.c > +++ b/hw/virtio/dataplane/vring.c > @@ -376,7 +376,7 @@ int vring_pop(VirtIODevice *vdev, Vring *vring, > barrier(); > > if (desc.flags & VRING_DESC_F_INDIRECT) { > - int ret = get_indirect(vring, elem, &desc); > + ret = get_indirect(vring, elem, &desc); > if (ret < 0) { > goto out; > } Broken in commit 4d684832. Could be mentioned in commit message. Reviewed-by: Markus Armbruster