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
File | Mode | Size |
---|---|---|
keystone | ||
nwfpe | ||
omap | ||
pxa | ||
sa1100 | ||
samsung | ||
samsung-s3c24xx | ||
spear | ||
sti | ||
stm32 | ||
sunxi | ||
vfp | ||
arm.rst | -rw-r--r-- | 7.7 KB |
booting.rst | -rw-r--r-- | 7.9 KB |
cluster-pm-race-avoidance.rst | -rw-r--r-- | 16.3 KB |
features.rst | -rw-r--r-- | 90 bytes |
firmware.rst | -rw-r--r-- | 2.3 KB |
index.rst | -rw-r--r-- | 1.1 KB |
interrupts.rst | -rw-r--r-- | 6.7 KB |
ixp4xx.rst | -rw-r--r-- | 6.3 KB |
kernel_mode_neon.rst | -rw-r--r-- | 5.6 KB |
kernel_user_helpers.rst | -rw-r--r-- | 6.7 KB |
marvell.rst | -rw-r--r-- | 23.8 KB |
mem_alignment.rst | -rw-r--r-- | 2.6 KB |
memory.rst | -rw-r--r-- | 3.7 KB |
microchip.rst | -rw-r--r-- | 6.2 KB |
netwinder.rst | -rw-r--r-- | 1.8 KB |
porting.rst | -rw-r--r-- | 4.4 KB |
setup.rst | -rw-r--r-- | 3.6 KB |
sunxi.rst | -rw-r--r-- | 4.2 KB |
swp_emulation.rst | -rw-r--r-- | 1.2 KB |
tcm.rst | -rw-r--r-- | 5.1 KB |
uefi.rst | -rw-r--r-- | 2.9 KB |
vlocks.rst | -rw-r--r-- | 6.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...