qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PULL 3/5] spapr: initialize local Error pointer


From: David Gibson
Subject: [Qemu-ppc] [PULL 3/5] spapr: initialize local Error pointer
Date: Thu, 25 Feb 2016 14:02:08 +1100

From: Greg Kurz <address@hidden>

This fixes a crash in the target QEMU during migration.

Broken in commit c5f54f3.

Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
[reworded commit message]
Signed-off-by: David Gibson <address@hidden>
---
 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 e214a34..c119f55 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);
-- 
2.5.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]