qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6606] qemu: zero ioport_opaque on isa_unassign_ioport (Marcelo Tosatti)
@ 2009-02-11 15:21 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-02-11 15:21 UTC (permalink / raw)
  To: qemu-devel

Revision: 6606
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6606
Author:   aliguori
Date:     2009-02-11 15:21:29 +0000 (Wed, 11 Feb 2009)

Log Message:
-----------
qemu: zero ioport_opaque on isa_unassign_ioport (Marcelo Tosatti)

If the io port is unassigned, the previous private pointer is
meaningless.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/vl.c

Modified: trunk/vl.c
===================================================================
--- trunk/vl.c	2009-02-11 15:21:22 UTC (rev 6605)
+++ trunk/vl.c	2009-02-11 15:21:29 UTC (rev 6606)
@@ -404,6 +404,8 @@
         ioport_write_table[0][i] = default_ioport_writeb;
         ioport_write_table[1][i] = default_ioport_writew;
         ioport_write_table[2][i] = default_ioport_writel;
+
+        ioport_opaque[i] = NULL;
     }
 }
 

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

only message in thread, other threads:[~2009-02-11 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 15:21 [Qemu-devel] [6606] qemu: zero ioport_opaque on isa_unassign_ioport (Marcelo Tosatti) Anthony Liguori

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).