提交 37bff62e 编写于 作者: Y Yinghai Lu 提交者: Ingo Molnar

x86_64: free_bootmem should take phys

so use nodedata_phys directly.
Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 7800c0c3
...@@ -221,8 +221,7 @@ void __init setup_node_bootmem(int nodeid, unsigned long start, ...@@ -221,8 +221,7 @@ void __init setup_node_bootmem(int nodeid, unsigned long start,
bootmap_pages<<PAGE_SHIFT, PAGE_SIZE); bootmap_pages<<PAGE_SHIFT, PAGE_SIZE);
if (bootmap == NULL) { if (bootmap == NULL) {
if (nodedata_phys < start || nodedata_phys >= end) if (nodedata_phys < start || nodedata_phys >= end)
free_bootmem((unsigned long)node_data[nodeid], free_bootmem(nodedata_phys, pgdat_size);
pgdat_size);
node_data[nodeid] = NULL; node_data[nodeid] = NULL;
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册