提交 f4c63ea9 编写于 作者: L Lu Baolu 提交者: Joerg Roedel

iommu/vt-d: Don't return error when device gets right domain

If a device gets a right domain in add_device ops, it shouldn't
return error.

Fixes: 942067f1 ("iommu/vt-d: Identify default domains replaced with private")
Signed-off-by: NLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 1c5c59fb
......@@ -5388,10 +5388,7 @@ static int intel_iommu_add_device(struct device *dev)
domain_add_dev_info(si_domain, dev);
dev_info(dev,
"Device uses a private identity domain.\n");
return 0;
}
return -ENODEV;
}
} else {
if (device_def_domain_type(dev) == IOMMU_DOMAIN_DMA) {
......@@ -5406,10 +5403,7 @@ static int intel_iommu_add_device(struct device *dev)
dev_info(dev,
"Device uses a private dma domain.\n");
return 0;
}
return -ENODEV;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册