diff options
| author | Yang Yingliang <[email protected]> | 2022-11-18 17:36:04 +0800 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2022-11-19 11:00:29 +0100 |
| commit | 6cf0981c2233f97d56938d9d61845383d6eb227c (patch) | |
| tree | 96efb3dd336803f13782da5888c3e52b289f929c /lib/crypto/mpi/mpi-bit.c | |
| parent | 1198d2316dc4265a97d0e8445a22c7a6d17580a4 (diff) | |
iommu/amd: Fix pci device refcount leak in ppr_notifier()
As comment of pci_get_domain_bus_and_slot() says, it returns
a pci device with refcount increment, when finish using it,
the caller must decrement the reference count by calling
pci_dev_put(). So call it before returning from ppr_notifier()
to avoid refcount leak.
Fixes: daae2d25a477 ("iommu/amd: Don't copy GCR3 table root pointer")
Signed-off-by: Yang Yingliang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions