mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6606 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4b09be85a0
commit
a7607f7e9b
1 changed files with 2 additions and 0 deletions
2
vl.c
2
vl.c
|
@ -404,6 +404,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue