Re: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to release resource properly

2020-05-06 Thread Lorenzo Pieralisi
On Wed, May 06, 2020 at 02:55:17PM +, Michael Kelley wrote: [...] > > Hv_pci_bus_exit() calls hv_send_resources_released() to release all child > > resources. > > These child resources were allocated in hv_send_resources_allocated(). > > Hv_send_resources_allocated() could fail in the

RE: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to release resource properly

2020-05-06 Thread Michael Kelley
.org; r...@kernel.org; bhelg...@google.com; linux- > > hyp...@vger.kernel.org; linux-...@vger.kernel.org; linux- > > ker...@vger.kernel.org; Dexuan Cui ; Michael Kelley > > > > Subject: Re: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path > > to > > rele

RE: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to release resource properly

2020-05-06 Thread Wei Hu
gle.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; Dexuan Cui ; Michael Kelley > > Subject: Re: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to > release resource properly > > On Wed, May 06, 2020 at 05:3

Re: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to release resource properly

2020-05-06 Thread Lorenzo Pieralisi
gt; > Cc: KY Srinivasan ; Haiyang Zhang > > ; Stephen Hemminger ; > > wei@kernel.org; r...@kernel.org; bhelg...@google.com; linux- > > hyp...@vger.kernel.org; linux-...@vger.kernel.org; linux- > > ker...@vger.kernel.org; Dexuan Cui ; Michael Kelley > > > &

RE: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to release resource properly

2020-05-05 Thread Wei Hu
; bhelg...@google.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; Dexuan Cui ; Michael Kelley > > Subject: Re: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to > release resource properly > > On Fri, May

Re: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to release resource properly

2020-05-05 Thread Lorenzo Pieralisi
On Fri, May 01, 2020 at 01:36:17PM +0800, Wei Hu wrote: > Some error cases in hv_pci_probe() were not handled. Fix these error > paths to release the resourses and clean up the state properly. This patch does more than that. It adds a variable to store the number of slots actually allocated - I

RE: [PATCH v2 1/2] PCI: hv: Fix the PCI HyperV probe failure path to release resource properly

2020-05-04 Thread Michael Kelley
From: Wei Hu Sent: Thursday, April 30, 2020 10:36 PM > > Some error cases in hv_pci_probe() were not handled. Fix these error > paths to release the resourses and clean up the state properly. > > Signed-off-by: Wei Hu > --- > drivers/pci/controller/pci-hyperv.c | 20 > 1