提交 90b3eb03 编写于 作者: J Joerg Roedel

iommu/amd: Rename free_on_init_error()

The function will also be used to free iommu resources when
amd_iommu=off was specified on the kernel command line. So
rename the function to reflect that.
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 11123741
...@@ -2108,7 +2108,7 @@ static struct syscore_ops amd_iommu_syscore_ops = { ...@@ -2108,7 +2108,7 @@ static struct syscore_ops amd_iommu_syscore_ops = {
.resume = amd_iommu_resume, .resume = amd_iommu_resume,
}; };
static void __init free_on_init_error(void) static void __init free_iommu_resources(void)
{ {
kmemleak_free(irq_lookup_table); kmemleak_free(irq_lookup_table);
free_pages((unsigned long)irq_lookup_table, free_pages((unsigned long)irq_lookup_table,
...@@ -2536,7 +2536,7 @@ static int __init amd_iommu_init(void) ...@@ -2536,7 +2536,7 @@ static int __init amd_iommu_init(void)
free_dma_resources(); free_dma_resources();
if (!irq_remapping_enabled) { if (!irq_remapping_enabled) {
disable_iommus(); disable_iommus();
free_on_init_error(); free_iommu_resources();
} else { } else {
struct amd_iommu *iommu; struct amd_iommu *iommu;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册