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: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
c5b5da9c79
commit
f1eae7c580
|
@ -1177,7 +1177,7 @@ static void domain_flush_complete(struct protection_domain *domain)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < amd_iommus_present; ++i) {
|
for (i = 0; i < amd_iommus_present; ++i) {
|
||||||
if (!domain->dev_iommu[i])
|
if (domain && !domain->dev_iommu[i])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue