aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8c137598555..e60f4cd29eb 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -1144,7 +1144,8 @@ out:
1144 return ret; 1144 return ret;
1145 1145
1146free: 1146free:
1147 free_pages((unsigned long)amd_iommu_pd_alloc_bitmap, 1); 1147 free_pages((unsigned long)amd_iommu_pd_alloc_bitmap,
1148 get_order(MAX_DOMAIN_ID/8));
1148 1149
1149 free_pages((unsigned long)amd_iommu_pd_table, 1150 free_pages((unsigned long)amd_iommu_pd_table,
1150 get_order(rlookup_table_size)); 1151 get_order(rlookup_table_size));