diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-16 14:33:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-16 14:33:09 -0500 |
commit | f74e6670c4a788c9a0c52ab2036d8ac6be12f1d8 (patch) | |
tree | d11599cff4ef51e6e98d3e132b561d00f3e40204 /arch/x86_64/mm | |
parent | 5580eceed2014135231acb3e6906accf97e10f3c (diff) |
x86-64: fix initrd freeing
The comparison of the initrd start address against "&_end" is
unnecessary and incorrect. Make it match the x86 code that just
compares the passed-in arguments.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/mm')
-rw-r--r-- | arch/x86_64/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index ef84106c1509..307d1ac0ef33 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -531,7 +531,7 @@ void mark_rodata_ro(void) | |||
531 | #ifdef CONFIG_BLK_DEV_INITRD | 531 | #ifdef CONFIG_BLK_DEV_INITRD |
532 | void free_initrd_mem(unsigned long start, unsigned long end) | 532 | void free_initrd_mem(unsigned long start, unsigned long end) |
533 | { | 533 | { |
534 | if (start < (unsigned long)&_end) | 534 | if (start >= end) |
535 | return; | 535 | return; |
536 | printk ("Freeing initrd memory: %ldk freed\n", (end - start) >> 10); | 536 | printk ("Freeing initrd memory: %ldk freed\n", (end - start) >> 10); |
537 | for (; start < end; start += PAGE_SIZE) { | 537 | for (; start < end; start += PAGE_SIZE) { |