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>
This commit is contained in:
parent
5580eceed2
commit
f74e6670c4
1 changed files with 1 additions and 1 deletions
|
@ -531,7 +531,7 @@ void mark_rodata_ro(void)
|
||||||
#ifdef CONFIG_BLK_DEV_INITRD
|
#ifdef CONFIG_BLK_DEV_INITRD
|
||||||
void free_initrd_mem(unsigned long start, unsigned long end)
|
void free_initrd_mem(unsigned long start, unsigned long end)
|
||||||
{
|
{
|
||||||
if (start < (unsigned long)&_end)
|
if (start >= end)
|
||||||
return;
|
return;
|
||||||
printk ("Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
|
printk ("Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
|
||||||
for (; start < end; start += PAGE_SIZE) {
|
for (; start < end; start += PAGE_SIZE) {
|
||||||
|
|
Loading…
Reference in a new issue