diff options
author | Igor Mammedov <imammedo@redhat.com> | 2018-05-10 18:10:56 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-05-10 18:10:56 +0100 |
commit | debbdc00182eb83db5d8acc241feb37c81bc63ec (patch) | |
tree | 16afa83a5be90e68fc41f38bf615c5ad46a09c1b /hw/ppc/e500plat.c | |
parent | 3b77f6c353a4bb8a66dab8a46668a7ccccc9de03 (diff) | |
download | qemu-debbdc00182eb83db5d8acc241feb37c81bc63ec.zip qemu-debbdc00182eb83db5d8acc241feb37c81bc63ec.tar.gz qemu-debbdc00182eb83db5d8acc241feb37c81bc63ec.tar.bz2 |
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 1a469ba..d8e3f20 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; |