[PATCH] perf/dwc_pcie: Fix PCI device reference leak in probe
Markus Elfring
Markus.Elfring at web.de
Sun Aug 16 01:26:39 PDT 2026
…
> 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
More information about the linux-arm-kernel
mailing list