diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-16 13:17:11 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-16 13:17:11 -0500 |
commit | 83fd5cc6481c6b7fa8b45f8a7e0aa7120213430b (patch) | |
tree | d60bd8cbfce34e11f186a97eb5be2a5c2632b150 /arch/x86/kernel/amd_iommu_init.c | |
parent | 1bda71282ded6a2e09a2db7c8884542fb46bfd4f (diff) |
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>
Diffstat (limited to 'arch/x86/kernel/amd_iommu_init.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu_init.c | 3 |
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 30ae2701b3df..c90a15eba5c5 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) | |||
1074 | goto free; | 1074 | goto free; |
1075 | 1075 | ||
1076 | /* IOMMU rlookup table - find the IOMMU for a specific device */ | 1076 | /* IOMMU rlookup table - find the IOMMU for a specific device */ |
1077 | amd_iommu_rlookup_table = (void *)__get_free_pages(GFP_KERNEL, | 1077 | amd_iommu_rlookup_table = (void *)__get_free_pages( |
1078 | GFP_KERNEL | __GFP_ZERO, | ||
1078 | get_order(rlookup_table_size)); | 1079 | get_order(rlookup_table_size)); |
1079 | if (amd_iommu_rlookup_table == NULL) | 1080 | if (amd_iommu_rlookup_table == NULL) |
1080 | goto free; | 1081 | goto free; |