Received: from eggs.gnu.org ([2001:4830:134:3::10]:37357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6KSt-0003rD-4j for qemu-devel@nongnu.org; Thu, 23 Jan 2014 08:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6KSn-00066W-6V for qemu-devel@nongnu.org; Thu, 23 Jan 2014 08:37:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6KSm-00066H-St for qemu-devel@nongnu.org; Thu, 23 Jan 2014 08:36:57 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0NDatR4013392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 23 Jan 2014 08:36:56 -0500 From: Markus Armbruster References: <1390322271-3310-1-git-send-email-marcel.a@redhat.com> Date: Thu, 23 Jan 2014 14:36:53 +0100 In-Reply-To: <1390322271-3310-1-git-send-email-marcel.a@redhat.com> (Marcel Apfelbaum's message of "Tue, 21 Jan 2014 18:37:51 +0200") Message-ID: <87r47y4y6i.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] hw/pci: fix error flow in pci multifunction init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: qemu-devel@nongnu.org, mst@redhat.com Marcel Apfelbaum writes: > Scenario: > - There is a non multifunction pci device A on 00:0X.0. > - Hot-plug another multifunction pci device B at 00:0X.1. > - The operation will fail of course. > - Try to hot-plug the B device 2-3 more times, qemu will crash. > > Reason: The error flow leaves the B's address space into global address spaces > list, but the device object is freed. Fixed that. > > Signed-off-by: Marcel Apfelbaum Looks good to me, but I'm not a PCI expert.