From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWPlJ-0007bu-7P for qemu-devel@nongnu.org; Thu, 18 Feb 2016 09:40:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWPlE-00015t-R0 for qemu-devel@nongnu.org; Thu, 18 Feb 2016 09:40:57 -0500 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:37326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWPlE-00015J-Fe for qemu-devel@nongnu.org; Thu, 18 Feb 2016 09:40:52 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 18 Feb 2016 14:40:50 -0000 From: Greg Kurz Date: Thu, 18 Feb 2016 15:40:45 +0100 Message-ID: <20160218144045.7349.67293.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] spapr: initialize local Error pointer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, qemu-devel@nongnu.org This fixes a crash in the target QEMU during migration. Fixes: c5f54f3e31bf693f70a98d4d73ea5dbe05689857 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);