From 750de28179f51efcecf2df1986558b0f87175f5d Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Tue, 11 Mar 2008 17:12:14 -0300 Subject: [PATCH] Zero ioport_opaque on isa_unassign_ioport If the io port is unassigned, the previous private pointer is meaningless. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- vl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vl.c b/vl.c index 74183627f6..562786296b 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; } } -- 2.11.4.GIT