]> git.proxmox.com Git - mirror_qemu.git/commit
spapr.c: handle dev->id in spapr_memory_unplug_rollback()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 7 Sep 2021 00:47:50 +0000 (21:47 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 29 Sep 2021 09:37:39 +0000 (19:37 +1000)
commit44d886abab268043157b08b77147cc29bff22090
treebbbd4675706cbe55fcebcb57fc429662d7cc1dc8
parent99b2c0622513fc98e8ed9dac56cafb6d29240e87
spapr.c: handle dev->id in spapr_memory_unplug_rollback()

As done in hw/acpi/memory_hotplug.c, pass an empty string if dev->id
is NULL to qapi_event_send_mem_unplug_error() to avoid relying on
a behavior that can be changed in the future.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20210907004755.424931-3-danielhb413@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c