diff options
author | Igor Mammedov | 2018-05-10 19:10:56 +0200 |
---|---|---|
committer | Peter Maydell | 2018-05-10 19:10:56 +0200 |
commit | debbdc00182eb83db5d8acc241feb37c81bc63ec (patch) | |
tree | 16afa83a5be90e68fc41f38bf615c5ad46a09c1b /hw/ppc/e500plat.c | |
parent | arm/boot: split load_dtb() from arm_load_kernel() (diff) | |
download | qemu-debbdc00182eb83db5d8acc241feb37c81bc63ec.tar.gz qemu-debbdc00182eb83db5d8acc241feb37c81bc63ec.tar.xz qemu-debbdc00182eb83db5d8acc241feb37c81bc63ec.zip |
make sure that we aren't overwriting mc->get_hotplug_handler by accident
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1525691524-32265-5-git-send-email-imammedo@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ppc/e500plat.c')
-rw-r--r-- | hw/ppc/e500plat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/e500plat.c b/hw/ppc/e500plat.c index 1a469ba69f..d8e3f2066e 100644 --- a/hw/ppc/e500plat.c +++ b/hw/ppc/e500plat.c @@ -74,6 +74,7 @@ static void e500plat_machine_class_init(ObjectClass *oc, void *data) HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); MachineClass *mc = MACHINE_CLASS(oc); + assert(!mc->get_hotplug_handler); mc->get_hotplug_handler = e500plat_machine_get_hotpug_handler; hc->plug = e500plat_machine_device_plug_cb; |