aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorFei Li <shirley17fei@gmail.com>2019-01-14 21:10:15 +0800
committerMichael S. Tsirkin <mst@redhat.com>2019-01-17 21:10:57 -0500
commit812e710a9624a3bf3c8bb126ac546b683edb60d5 (patch)
treeef37ea186780db92688b5529ed40f53f2c5f310b /hw
parent53921bfdce3f8fffcc22338633855247fb7b7a74 (diff)
downloadqemu-812e710a9624a3bf3c8bb126ac546b683edb60d5.zip
qemu-812e710a9624a3bf3c8bb126ac546b683edb60d5.tar.gz
qemu-812e710a9624a3bf3c8bb126ac546b683edb60d5.tar.bz2
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 <armbru@redhat.com> Signed-off-by: Fei Li <shirley17fei@gmail.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/misc/edu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/misc/edu.c b/hw/misc/edu.c
index cdcf550..ceaf688 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,