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 |
---|---|---|
Makefile | -rw-r--r-- | 381 bytes |
clnt4xdr.c | -rw-r--r-- | 12.9 KB |
clntlock.c | -rw-r--r-- | 7.5 KB |
clntproc.c | -rw-r--r-- | 21.7 KB |
clntxdr.c | -rw-r--r-- | 13.2 KB |
host.c | -rw-r--r-- | 17.5 KB |
mon.c | -rw-r--r-- | 14.4 KB |
netns.h | -rw-r--r-- | 395 bytes |
procfs.c | -rw-r--r-- | 1.9 KB |
procfs.h | -rw-r--r-- | 474 bytes |
svc.c | -rw-r--r-- | 18.3 KB |
svc4proc.c | -rw-r--r-- | 20.0 KB |
svclock.c | -rw-r--r-- | 27.0 KB |
svcproc.c | -rw-r--r-- | 20.5 KB |
svcshare.c | -rw-r--r-- | 2.4 KB |
svcsubs.c | -rw-r--r-- | 11.4 KB |
svcxdr.h | -rw-r--r-- | 2.8 KB |
xdr.c | -rw-r--r-- | 7.6 KB |
xdr4.c | -rw-r--r-- | 7.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...