qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] spapr: initialize local Error pointer
@ 2016-02-18 14:40 Greg Kurz
  2016-02-18 15:02 ` [Qemu-trivial] [Qemu-devel] " Markus Armbruster
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Kurz @ 2016-02-18 14:40 UTC (permalink / raw)
  To: David Gibson; +Cc: qemu-trivial, qemu-ppc, qemu-devel

This fixes a crash in the target QEMU during migration.

Fixes: c5f54f3e31bf693f70a98d4d73ea5dbe05689857
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
---
 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);



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-19  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 14:40 [Qemu-trivial] [PATCH] spapr: initialize local Error pointer Greg Kurz
2016-02-18 15:02 ` [Qemu-trivial] [Qemu-devel] " Markus Armbruster
2016-02-18 15:10   ` Greg Kurz
2016-02-19  0:15   ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).