From: Michael S. Tsirkin Date: Wed, 22 Jul 2009 15:51:14 +0000 (+0300) Subject: qemu: msix nit: clear msix_entries_nr on error X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~7622 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3174ecd128ba5a4dc67de2a23cf2d385af1c4e70;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: Anthony Liguori --- diff --git a/hw/msix.c b/hw/msix.c index 3420ce9b24..c954d471c2 100644 --- a/hw/msix.c +++ b/hw/msix.c @@ -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);