projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81ebd91
)
iommu/vt-d: Remove duplicated check in intel_svm_bind_mm()
author
Lu Baolu
<baolu.lu@linux.intel.com>
Sat, 16 May 2020 06:21:00 +0000
(14:21 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Mon, 18 May 2020 13:37:26 +0000
(15:37 +0200)
The info and info->pasid_support have already been checked in previous
intel_iommu_enable_pasid() call. No need to check again.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link:
https://lore.kernel.org/r/20200516062101.29541-18-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel-svm.c
b/drivers/iommu/intel-svm.c
index 42f916b9667ebebfe24e24c06d9ba0e810390779..11366dc91971d78b11a8b7613cf3351caef6e83a 100644
(file)
--- a/
drivers/iommu/intel-svm.c
+++ b/
drivers/iommu/intel-svm.c
@@
-501,11
+501,6
@@
intel_svm_bind_mm(struct device *dev, int flags, struct svm_dev_ops *ops,
}
info = get_domain_info(dev);
- if (!info || !info->pasid_supported) {
- kfree(sdev);
- goto out;
- }
-
sdev->did = FLPT_DEFAULT_DID;
sdev->sid = PCI_DEVID(info->bus, info->devfn);
if (info->ats_enabled) {