Received: from [140.186.70.92] (port=39824 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OR2Y9-000490-8G for qemu-devel@nongnu.org; Tue, 22 Jun 2010 08:25:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OR2Xh-0005uD-Hv for qemu-devel@nongnu.org; Tue, 22 Jun 2010 08:25:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32115) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OR2Xh-0005ts-7q for qemu-devel@nongnu.org; Tue, 22 Jun 2010 08:25:29 -0400 Date: Tue, 22 Jun 2010 15:20:33 +0300 From: "Michael S. Tsirkin" Message-ID: <20100622122033.GB17285@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: [PATCH v2 0/3] pci: fix resource leak in pci qdev and hot plug. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: qemu-devel@nongnu.org, kraxel@redhat.com On Tue, Jun 22, 2010 at 11:55:32AM +0900, Isaku Yamahata wrote: > pci qdev exit code patch(pci_unregister_device) doesn't release > all the resource allocated by pci qdev initialization.(pci_qdev_init) > This patch series sorts it out and make pci::hotplug error code to the caller. > > Isaku Yamahata (3): > pci: fix memory leak of PCIDevice::romfile. > pci: option rom clean up. > pci hotplug: make pci hotplug return value to caller. Applied (tweaked 3/3 to assert on unregister: if we can not cleanup, we are in an unknown state). > hw/pci.c | 26 ++++++++++++++++++++++---- > 1 files changed, 22 insertions(+), 4 deletions(-)