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
damon
active_mm.rst -rw-r--r-- 3.8 KB
arch_pgtable_helpers.rst -rw-r--r-- 18.2 KB
balance.rst -rw-r--r-- 5.3 KB
bootmem.rst -rw-r--r-- 73 bytes
free_page_reporting.rst -rw-r--r-- 2.0 KB
frontswap.rst -rw-r--r-- 13.6 KB
highmem.rst -rw-r--r-- 8.2 KB
hmm.rst -rw-r--r-- 21.0 KB
hugetlbfs_reserv.rst -rw-r--r-- 28.8 KB
hwpoison.rst -rw-r--r-- 5.9 KB
index.rst -rw-r--r-- 1.5 KB
ksm.rst -rw-r--r-- 3.4 KB
memory-model.rst -rw-r--r-- 7.9 KB
mmu_notifier.rst -rw-r--r-- 4.1 KB
multigen_lru.rst -rw-r--r-- 7.1 KB
numa.rst -rw-r--r-- 8.6 KB
oom.rst -rw-r--r-- 106 bytes
overcommit-accounting.rst -rw-r--r-- 2.6 KB
page_allocation.rst -rw-r--r-- 85 bytes
page_cache.rst -rw-r--r-- 70 bytes
page_frags.rst -rw-r--r-- 2.3 KB
page_migration.rst -rw-r--r-- 8.5 KB
page_owner.rst -rw-r--r-- 7.1 KB
page_reclaim.rst -rw-r--r-- 76 bytes
page_table_check.rst -rw-r--r-- 2.4 KB
page_tables.rst -rw-r--r-- 73 bytes
physical_memory.rst -rw-r--r-- 85 bytes
process_addrs.rst -rw-r--r-- 91 bytes
remap_file_pages.rst -rw-r--r-- 1.6 KB
shmfs.rst -rw-r--r-- 112 bytes
slab.rst -rw-r--r-- 85 bytes
slub.rst -rw-r--r-- 16.9 KB
split_page_table_lock.rst -rw-r--r-- 3.6 KB
swap.rst -rw-r--r-- 52 bytes
transhuge.rst -rw-r--r-- 8.2 KB
unevictable-lru.rst -rw-r--r-- 26.1 KB
vmalloc.rst -rw-r--r-- 154 bytes
vmalloced-kernel-stacks.rst -rw-r--r-- 5.6 KB
vmemmap_dedup.rst -rw-r--r-- 12.1 KB
z3fold.rst -rw-r--r-- 1.2 KB
zsmalloc.rst -rw-r--r-- 3.0 KB

back to top