[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
- [Qemu-ppc] [PULL 0/5] ppc-for-2.6 queue 20160225, David Gibson, 2016/02/24
- [Qemu-ppc] [PULL 5/5] ppc/kvm: Tell the user what might be wrong when using bad CPU types with kvm-hv, David Gibson, 2016/02/24
- [Qemu-ppc] [PULL 4/5] ppc/kvm: Use error_report() instead of cpu_abort() for user-triggerable errors, David Gibson, 2016/02/24
- [Qemu-ppc] [PULL 2/5] hw/ppc/spapr: Implement the h_page_init hypercall, David Gibson, 2016/02/24
- [Qemu-ppc] [PULL 3/5] spapr: initialize local Error pointer,
David Gibson <=
- [Qemu-ppc] [PULL 1/5] pseries: Update SLOF firmware image to 20160223, David Gibson, 2016/02/25
- Re: [Qemu-ppc] [PULL 0/5] ppc-for-2.6 queue 20160225, Peter Maydell, 2016/02/25