From: Ian Jackson Subject: Re: [PATCH] libxl: do not try to detach pci device when none attached Date: Tue, 21 Jun 2011 17:36:15 +0100 Message-ID: <19968.51327.342052.925027@mariner.uk.xensource.com> References: <88f67b423c89f4bd6048.1307662408@devel14> <4DF1F675.4000700@mimuw.edu.pl> <4DF1FC82.6050707@mimuw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4DF1FC82.6050707@mimuw.edu.pl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Marek Marczykowski Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Marek Marczykowski writes ("Re: [Xen-devel] [PATCH] libxl: do not try to detach pci device when none attached"): > On 10.06.2011 13:03, Stefano Stabellini wrote: > > If num is 0, it won't enter the following loop anyway, the only > > other operation in libxl_device_pci_shutdown is free(pcidevs) and > > pcidevs should be NULL so nothing bad should happen. > > Ah, ok. So your patch should also works. I have applied Stefano's patch. Ian.