diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-03-11 17:12:14 -0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-03-16 14:27:07 +0200 |
commit | 750de28179f51efcecf2df1986558b0f87175f5d (patch) | |
tree | 706f6364d677c3cd7043492c4bc60715bc19c37a /vl.c | |
parent | LSI SCSI and e1000 unregister callbacks (diff) | |
download | qemu-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } } |