Re: [PATCH] iommu/amd: Fix PCI device reference leak in PPR handling

Markus Elfring <[email protected]>
Newsgroups dev.linux.lists.iommu,org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
…
> Call pci_dev_put() after the final use of the lookup reference on both
> paths.
…

How do you think about to apply the attribute “__free(pci_dev_put)”
also in the implementation of the function “iommu_call_iopf_notifier”?
https://elixir.bootlin.com/linux/v7.2-rc7/source/include/linux/pci.h#L1269

https://elixir.bootlin.com/linux/v7.2-rc7/source/drivers/iommu/amd/ppr.c#L107-L162

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.