aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/pci-dma.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index 1a017f00e867..81862d0c7a9a 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -92,7 +92,6 @@ void __init dma32_reserve_bootmem(void)
92} 92}
93static void __init dma32_free_bootmem(void) 93static void __init dma32_free_bootmem(void)
94{ 94{
95 int node;
96 95
97 if (end_pfn <= MAX_DMA32_PFN) 96 if (end_pfn <= MAX_DMA32_PFN)
98 return; 97 return;
@@ -100,9 +99,7 @@ static void __init dma32_free_bootmem(void)
100 if (!dma32_bootmem_ptr) 99 if (!dma32_bootmem_ptr)
101 return; 100 return;
102 101
103 for_each_online_node(node) 102 free_bootmem(__pa(dma32_bootmem_ptr), dma32_bootmem_size);
104 free_bootmem_node(NODE_DATA(node), __pa(dma32_bootmem_ptr),
105 dma32_bootmem_size);
106 103
107 dma32_bootmem_ptr = NULL; 104 dma32_bootmem_ptr = NULL;
108 dma32_bootmem_size = 0; 105 dma32_bootmem_size = 0;