qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qemu: msix nit: clear msix_entries_nr on error
@ 2009-07-22 15:51 Michael S. Tsirkin
  0 siblings, 0 replies; only message in thread
From: Michael S. Tsirkin @ 2009-07-22 15:51 UTC (permalink / raw)
  To: qemu-devel, anthony

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>
---
 hw/msix.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/msix.c b/hw/msix.c
index 4ab6da6..932deea 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);
-- 
1.6.2.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-22 15:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22 15:51 [Qemu-devel] [PATCH] qemu: msix nit: clear msix_entries_nr on error Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).