Revision 6927d352380797ddbee18631491ec428741696e2 authored by Yang Yingliang on 01 December 2022, 04:01:25 UTC, committed by Joerg Roedel on 02 December 2022, 10:45:32 UTC
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 decrease
the reference count by calling pci_dev_put(). So call pci_dev_put() after
using the 'pdev' to avoid refcount leak.

Besides, if the 'pdev' is null or intel_svm_prq_report() returns error,
there is no need to trace this fault.

Fixes: 06f4b8d09dba ("iommu/vt-d: Remove unnecessary SVA data accesses in page fault path")
Suggested-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221119144028.2452731-1-yangyingliang@huawei.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent e65a689
History
File Mode Size
busses
muxes
dev-interface.rst -rw-r--r-- 8.8 KB
dma-considerations.rst -rw-r--r-- 3.6 KB
fault-codes.rst -rw-r--r-- 5.1 KB
functionality.rst -rw-r--r-- 6.4 KB
gpio-fault-injection.rst -rw-r--r-- 6.0 KB
i2c-protocol.rst -rw-r--r-- 3.0 KB
i2c-stub.rst -rw-r--r-- 2.3 KB
i2c-sysfs.rst -rw-r--r-- 15.5 KB
i2c-topology.rst -rw-r--r-- 15.8 KB
i2c_bus.svg -rw-r--r-- 54.7 KB
index.rst -rw-r--r-- 930 bytes
instantiating-devices.rst -rw-r--r-- 10.0 KB
old-module-parameters.rst -rw-r--r-- 2.2 KB
slave-eeprom-backend.rst -rw-r--r-- 1005 bytes
slave-interface.rst -rw-r--r-- 8.0 KB
slave-testunit-backend.rst -rw-r--r-- 3.8 KB
smbus-protocol.rst -rw-r--r-- 9.8 KB
summary.rst -rw-r--r-- 2.9 KB
ten-bit-addresses.rst -rw-r--r-- 1.6 KB
writing-clients.rst -rw-r--r-- 15.2 KB

back to top