提交 f1eae7c5 编写于 作者: J Joerg Roedel

iommu/amd: Allow NULL pointer parameter for domain_flush_complete()

If domain == NULL is passed to the function, it will queue a
completion-wait command on all IOMMUs in the system.
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 c5b5da9c
......@@ -1177,7 +1177,7 @@ static void domain_flush_complete(struct protection_domain *domain)
int i;
for (i = 0; i < amd_iommus_present; ++i) {
if (!domain->dev_iommu[i])
if (domain && !domain->dev_iommu[i])
continue;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册