Re: [PATCH] perf/dwc_pcie: Fix PCI device reference leak in probe

Markus Elfring <[email protected]>
Newsgroups org.kernel.vger.linux-perf-users,org.infradead.lists.linux-arm-kernel,org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
…
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.