Re: [PATCH] perf/dwc_pcie: Fix PCI device reference leak in probe
From: Markus Elfring
Date: Sun Aug 16 2026 - 04:27:39 EST
…
> Move the existing pci_dev_put() immediately after capability discovery
> so the temporary lookup reference is released on both success and
> failure paths.
…
How do you think about to apply the attribute “__free(pci_dev_put)”?
https://elixir.bootlin.com/linux/v7.2-rc7/source/include/linux/pci.h#L1269
Regards,
Markus