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

2020-05-07 Thread Michael Kelley
From: Wei Hu Sent: Wednesday, May 6, 2020 10:02 PM > > In some error cases in hv_pci_probe(), allocated resources are not freed. > Fix this by adding a field to keep track of the high water mark for slots > that have resources allocated to them. In case of an error, this high > water mark is

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

2020-05-06 Thread Wei Hu
In some error cases in hv_pci_probe(), allocated resources are not freed. Fix this by adding a field to keep track of the high water mark for slots that have resources allocated to them. In case of an error, this high water mark is used to know which slots have resources that must be released.