x86_64: free_bootmem should take phys
so use nodedata_phys directly. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
7800c0c3b1
commit
37bff62e98
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user