aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-12-16 19:17:11 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2008-12-16 19:17:11 +0100
commit83fd5cc6481c6b7fa8b45f8a7e0aa7120213430b (patch)
treed60bd8cbfce34e11f186a97eb5be2a5c2632b150
parent1bda71282ded6a2e09a2db7c8884542fb46bfd4f (diff)
downloadkernel_samsung_smdk4412-83fd5cc6481c6b7fa8b45f8a7e0aa7120213430b.zip
kernel_samsung_smdk4412-83fd5cc6481c6b7fa8b45f8a7e0aa7120213430b.tar.gz
kernel_samsung_smdk4412-83fd5cc6481c6b7fa8b45f8a7e0aa7120213430b.tar.bz2
AMD IOMMU: allocate rlookup_table with __GFP_ZERO
Impact: fix bug which can lead to panic in prealloc_protection_domains() Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
-rw-r--r--arch/x86/kernel/amd_iommu_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index 30ae270..c90a15e 100644
--- 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;