projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ac7266
)
iommu/vt-d: Use domain_remove_one_dev_info() in domain_add_dev_info() error path
author
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 9 Mar 2014 20:25:07 +0000
(13:25 -0700)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 24 Mar 2014 14:06:42 +0000
(14:06 +0000)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel-iommu.c
b/drivers/iommu/intel-iommu.c
index 7d3d33f5c8dcc485d652c8d1a416f2f1be599880..84f0d4284125c79c02ecc2e06ad54b62ffc0a080 100644
(file)
--- a/
drivers/iommu/intel-iommu.c
+++ b/
drivers/iommu/intel-iommu.c
@@
-2453,8
+2453,6
@@
static int domain_add_dev_info(struct dmar_domain *domain,
int translation)
{
struct dmar_domain *ndomain;
- struct device_domain_info *info;
- unsigned long flags;
int ret;
ndomain = dmar_insert_dev_info(pci_domain_nr(pdev->bus),
@@
-2465,11
+2463,7
@@
static int domain_add_dev_info(struct dmar_domain *domain,
ret = domain_context_mapping(domain, pdev, translation);
if (ret) {
- spin_lock_irqsave(&device_domain_lock, flags);
- info = pdev->dev.archdata.iommu;
- unlink_domain_info(info);
- spin_unlock_irqrestore(&device_domain_lock, flags);
- free_devinfo_mem(info);
+ domain_remove_one_dev_info(domain, pdev);
return ret;
}