From: Fei Li Date: Mon, 14 Jan 2019 13:10:15 +0000 (+0800) Subject: hw/misc/edu: add msi_uninit() for pci_edu_uninit() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=812e710a9624a3bf3c8bb126ac546b683edb60d5;p=qemu.git hw/misc/edu: add msi_uninit() for pci_edu_uninit() Let's supplement the msi_uninit() when failing to realize the pci edu device. Reported-by: Markus Armbruster Signed-off-by: Fei Li Reviewed-by: Marcel Apfelbaum Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/misc/edu.c b/hw/misc/edu.c index cdcf550dd7..ceaf688bfb 100644 --- a/hw/misc/edu.c +++ b/hw/misc/edu.c @@ -377,6 +377,7 @@ static void pci_edu_uninit(PCIDevice *pdev) qemu_mutex_destroy(&edu->thr_mutex); timer_del(&edu->dma_timer); + msi_uninit(pdev); } static void edu_obj_uint64(Object *obj, Visitor *v, const char *name,