projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bda712
)
AMD IOMMU: allocate rlookup_table with __GFP_ZERO
author
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 16 Dec 2008 18:17:11 +0000
(19:17 +0100)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 16 Dec 2008 18:17:11 +0000
(19:17 +0100)
Impact: fix bug which can lead to panic in prealloc_protection_domains()
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu_init.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/amd_iommu_init.c
b/arch/x86/kernel/amd_iommu_init.c
index 30ae2701b3df1b8976400d5996ed72a4a98baeea..c90a15eba5c5e42956d872527ff25dbfdc941ae6 100644
(file)
--- a/
arch/x86/kernel/amd_iommu_init.c
+++ b/
arch/x86/kernel/amd_iommu_init.c
@@
-1074,7
+1074,8
@@
int __init amd_iommu_init(void)
goto free;
/* IOMMU rlookup table - find the IOMMU for a specific device */
- amd_iommu_rlookup_table = (void *)__get_free_pages(GFP_KERNEL,
+ amd_iommu_rlookup_table = (void *)__get_free_pages(
+ GFP_KERNEL | __GFP_ZERO,
get_order(rlookup_table_size));
if (amd_iommu_rlookup_table == NULL)
goto free;