Re: [PATCH v2] perf/dwc_pcie: Fix PCI device reference leak in probe
From: Markus Elfring
Date: Thu Aug 20 2026 - 10:16:43 EST
…
> Declare the looked-up device with __free(pci_dev_put), so the temporary
> reference is released on every return path. Keeping the reference scoped
> to the whole probe also covers all later uses of the device during
> initialization.
…
Is there a need to reduce the scope for such a local variable further
by using a corresponding compound statement?
Regards,
Markus