提交 83fd5cc6 编写于 作者: J Joerg Roedel

AMD IOMMU: allocate rlookup_table with __GFP_ZERO

Impact: fix bug which can lead to panic in prealloc_protection_domains()
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 1bda7128
...@@ -1074,7 +1074,8 @@ int __init amd_iommu_init(void) ...@@ -1074,7 +1074,8 @@ int __init amd_iommu_init(void)
goto free; goto free;
/* IOMMU rlookup table - find the IOMMU for a specific device */ /* 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)); get_order(rlookup_table_size));
if (amd_iommu_rlookup_table == NULL) if (amd_iommu_rlookup_table == NULL)
goto free; goto free;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册