spapr: initialize local Error pointer
This fixes a crash in the target QEMU during migration.
Broken in commit c5f54f3
.
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[reworded commit message]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
3240dd9a69
commit
9897e46264
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user