aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2008-03-11 17:12:14 -0300
committerAvi Kivity <avi@qumranet.com>2008-03-16 14:27:07 +0200
commit750de28179f51efcecf2df1986558b0f87175f5d (patch)
tree706f6364d677c3cd7043492c4bc60715bc19c37a /vl.c
parentLSI SCSI and e1000 unregister callbacks (diff)
downloadqemu-kvm-750de28179f51efcecf2df1986558b0f87175f5d.tar.gz
qemu-kvm-750de28179f51efcecf2df1986558b0f87175f5d.tar.bz2
qemu-kvm-750de28179f51efcecf2df1986558b0f87175f5d.zip
Zero ioport_opaque on isa_unassign_ioport
If the io port is unassigned, the previous private pointer is meaningless. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 74183627f..562786296 100644
--- a/vl.c
+++ b/vl.c
@@ -399,6 +399,8 @@ void isa_unassign_ioport(int start, int length)
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;
}
}