Received: from eggs.gnu.org ([2001:4830:134:3::10]:47753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frgYt-00032s-GW for qemu-devel@nongnu.org; Mon, 20 Aug 2018 05:33:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frgYp-0000w8-Gz for qemu-devel@nongnu.org; Mon, 20 Aug 2018 05:33:23 -0400 From: Alberto Garcia In-Reply-To: <20180817171932.31976-3-marcandre.lureau@redhat.com> References: <20180817171932.31976-1-marcandre.lureau@redhat.com> <20180817171932.31976-3-marcandre.lureau@redhat.com> Date: Mon, 20 Aug 2018 11:32:40 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] qobject: modify qobject_ref() to assert on NULL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , qemu-devel@nongnu.org Cc: armbru@redhat.com, eblake@redhat.com, Kevin Wolf , Max Reitz , "Dr. David Alan Gilbert" , "open list:Block layer core" On Fri 17 Aug 2018 07:19:32 PM CEST, Marc-Andr=C3=A9 Lureau wrote: > diff --git a/block/quorum.c b/block/quorum.c > index 9152da8c58..96cd094ede 100644 > --- a/block/quorum.c > +++ b/block/quorum.c > @@ -1089,7 +1089,8 @@ static void quorum_refresh_filename(BlockDriverStat= e *bs, QDict *options) > children =3D qlist_new(); > for (i =3D 0; i < s->num_children; i++) { > qlist_append(children, > - qobject_ref(s->children[i]->bs->full_open_options)); > + s->children[i]->bs->full_open_options ? > + qobject_ref(s->children[i]->bs->full_open_options) = : NULL); > } >=20=20 > opts =3D qdict_new(); Reviewed-by: Alberto Garcia Berto