Received: from eggs.gnu.org ([2001:4830:134:3::10]:40784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWQ6g-0001AT-Mp for qemu-devel@nongnu.org; Thu, 18 Feb 2016 10:03:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWQ6b-0006tc-Ko for qemu-devel@nongnu.org; Thu, 18 Feb 2016 10:03:02 -0500 From: Markus Armbruster References: <20160218144045.7349.67293.stgit@bahia.huguette.org> Date: Thu, 18 Feb 2016 16:02:53 +0100 In-Reply-To: <20160218144045.7349.67293.stgit@bahia.huguette.org> (Greg Kurz's message of "Thu, 18 Feb 2016 15:40:45 +0100") Message-ID: <87povuawo2.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] spapr: initialize local Error pointer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson Greg Kurz writes: > This fixes a crash in the target QEMU during migration. > > Fixes: c5f54f3e31bf693f70a98d4d73ea5dbe05689857 Suggest to word that as "Broken in commit c5f54f3." > Signed-off-by: Greg Kurz > --- > hw/ppc/spapr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > index e214a34257b3..c119f5582429 100644 > --- a/hw/ppc/spapr.c > +++ b/hw/ppc/spapr.c > @@ -1528,7 +1528,7 @@ static int htab_load(QEMUFile *f, void *opaque, int version_id) > section_hdr = qemu_get_be32(f); > > if (section_hdr) { > - Error *local_err; > + Error *local_err = NULL; > > /* First section gives the htab size */ > spapr_reallocate_hpt(spapr, section_hdr, &local_err); Easy mistake to make (I've made it myself). I wish I had the time to figure out how to make Coccinelle catch it. Reviewed-by: Markus Armbruster