Re: [PATCH] iommu/amd: Fix PCI device reference leak in PPR handling
Markus Elfring <[email protected]>
| Newsgroups | gmane.linux.kernel.janitors,gmane.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