Commit a7607f7e9bdf69c80be33b6386f48cba19fc0fb7
1 parent
4b09be85
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
Showing
1 changed file
with
2 additions
and
0 deletions
vl.c
... | ... | @@ -404,6 +404,8 @@ void isa_unassign_ioport(int start, int length) |
404 | 404 | ioport_write_table[0][i] = default_ioport_writeb; |
405 | 405 | ioport_write_table[1][i] = default_ioport_writew; |
406 | 406 | ioport_write_table[2][i] = default_ioport_writel; |
407 | + | |
408 | + ioport_opaque[i] = NULL; | |
407 | 409 | } |
408 | 410 | } |
409 | 411 | ... | ... |