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 80250e63bd07..db0c83af44de 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -433,7 +433,8 @@ static u8 * __init alloc_command_buffer(struct amd_iommu *iommu)
433 433
434static void __init free_command_buffer(struct amd_iommu *iommu) 434static void __init free_command_buffer(struct amd_iommu *iommu)
435{ 435{
436 free_pages((unsigned long)iommu->cmd_buf, get_order(CMD_BUFFER_SIZE)); 436 free_pages((unsigned long)iommu->cmd_buf,
437 get_order(iommu->cmd_buf_size));
437} 438}
438 439
439/* allocates the memory where the IOMMU will log its events to */ 440/* allocates the memory where the IOMMU will log its events to */