Re: [PATCH] iommu/amd: Fix PCI device reference leak in PPR handling
From: Markus Elfring
Date: Sun Aug 16 2026 - 10:49:03 EST
…
> 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