Re: [PATCH 1/4] virpci: Avoid Clang false positive

2021-08-25 Thread Peter Krempa
Please pick a better summary. Something along: virpci: Clarify lifetime of temporary object On Wed, Aug 25, 2021 at 14:54:56 +0200, Michal Privoznik wrote: > The virPCIDeviceIsBehindSwitchLackingACS() function checks > whether given PCI device is not behind a switch that lacks ACS. > It does so

[PATCH 1/4] virpci: Avoid Clang false positive

2021-08-25 Thread Michal Privoznik
The virPCIDeviceIsBehindSwitchLackingACS() function checks whether given PCI device is not behind a switch that lacks ACS. It does so by starting at given device and traversing up, one parent at time towards the root. The parent device is obtained via virPCIDeviceGetParent() which allocates new vir