From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUi5E-0002zB-OI for qemu-devel@nongnu.org; Wed, 04 Feb 2009 08:46:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUi5E-0002yi-0D for qemu-devel@nongnu.org; Wed, 04 Feb 2009 08:46:28 -0500 Received: from [199.232.76.173] (port=37327 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUi5D-0002ya-Mv for qemu-devel@nongnu.org; Wed, 04 Feb 2009 08:46:27 -0500 Received: from mx2.redhat.com ([66.187.237.31]:34150) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUi5D-0000hQ-7O for qemu-devel@nongnu.org; Wed, 04 Feb 2009 08:46:27 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n14DkQgY010784 for ; Wed, 4 Feb 2009 08:46:26 -0500 Message-Id: <20090204133924.687188413@localhost.localdomain> References: <20090204133303.113145633@localhost.localdomain> Date: Wed, 04 Feb 2009 11:33:18 -0200 From: Marcelo Tosatti Content-Disposition: inline; filename=zero-ioport-opaque Subject: [Qemu-devel] [patch 15/18] qemu: zero ioport_opaque on isa_unassign_ioport Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Marcelo Tosatti If the io port is unassigned, the previous private pointer is meaningless. Signed-off-by: Marcelo Tosatti Index: trunk/vl.c =================================================================== --- trunk.orig/vl.c +++ trunk/vl.c @@ -404,6 +404,8 @@ void isa_unassign_ioport(int start, int 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; } } --