Skip to content

Commit

Permalink
x86_64: free_bootmem should take phys
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Mar 21, 2008
1 parent 7800c0c commit 37bff62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/mm/numa_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ void __init setup_node_bootmem(int nodeid, unsigned long start,
bootmap_pages<<PAGE_SHIFT, PAGE_SIZE);
if (bootmap == NULL) {
if (nodedata_phys < start || nodedata_phys >= end)
free_bootmem((unsigned long)node_data[nodeid],
pgdat_size);
free_bootmem(nodedata_phys, pgdat_size);
node_data[nodeid] = NULL;
return;
}
Expand Down

0 comments on commit 37bff62

Please sign in to comment.