Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1eae7c5 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarJoerg Roedel <jroedel@suse.de>
parent c5b5da9c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

		/*