From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPlzh-0006CG-03 for qemu-devel@nongnu.org; Wed, 02 May 2012 22:42:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPlzf-0004Dx-BK for qemu-devel@nongnu.org; Wed, 02 May 2012 22:42:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPlzf-0004Df-3j for qemu-devel@nongnu.org; Wed, 02 May 2012 22:42:11 -0400 Date: Wed, 2 May 2012 22:42:06 -0400 From: Jason Baron Message-Id: Subject: [Qemu-devel] [PATCH 0/2] pci: hotplug bridge fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, alex.williamson@redhat.com, aliguori@us.ibm.com, mst@redhat.com Hi, While testing pci bridge hotplug via device_add, I ran into a couple of qemu segfaults. The first one was caused by having a refcount greater than 0, in the object_delete() path. Once, I got past that error, I hit a second segfault due to the fact that pci_bridge_dev_initfn() didn't fully cleanup its state. Thanks, -Jason Jason Baron (2): qdev: release parent properties on dc->init failure pci_bridge_dev: fix error path in pci_bridge_dev_initfn() hw/pci_bridge_dev.c | 4 +++- hw/qdev.c | 1 + 2 files changed, 4 insertions(+), 1 deletions(-)