projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b5da9
)
iommu/amd: Allow NULL pointer parameter for domain_flush_complete()
author
Joerg Roedel
<jroedel@suse.de>
Wed, 6 Jul 2016 10:50:35 +0000
(12:50 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 13 Jul 2016 10:48:35 +0000
(12:48 +0200)
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>
drivers/iommu/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 38f8a5e461fcbd24d27279558d6129470260b06b..0884b126d93238ff70c09218ea9f136b43c2c36d 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-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;
/*