diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-07-22 18:51:14 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-29 11:38:07 -0500 |
commit | 8568d307a7db11a176a5b97270cc905a20feafa3 (patch) | |
tree | b6a2f8cb963ab36e0ffdb3ca86d8d0a2b0c4b967 | |
parent | b87d79698d04bc472d2847d9a1d209985b99f8a4 (diff) | |
download | qemu-8568d307a7db11a176a5b97270cc905a20feafa3.tar.gz |
qemu: msix nit: clear msix_entries_nr on error
I don't think it's critical to do this, but it's
best to keep uninit and error recovery consistent.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | hw/msix.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -255,6 +255,7 @@ int msix_init(struct PCIDevice *dev, unsigned short nentries, return 0; err_config: + dev->msix_entries_nr = 0; cpu_unregister_io_memory(dev->msix_mmio_index); err_index: qemu_free(dev->msix_table_page); |