Skip to content

Commit

Permalink
arch/tile: correct a bug in freeing bootmem by VA for the optional se…
Browse files Browse the repository at this point in the history
…cond initrd.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
  • Loading branch information
Chris Metcalf committed Aug 13, 2010
1 parent c45c1cd commit bc63de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/tile/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ static void __init load_hv_initrd(void)
if (rc != stat.size) {
pr_err("Error reading %d bytes from hvfs file '%s': %d\n",
stat.size, initramfs_file, rc);
free_bootmem((unsigned long) initrd, stat.size);
free_initrd_mem((unsigned long) initrd, stat.size);
return;
}
initrd_start = (unsigned long) initrd;
Expand All @@ -962,7 +962,7 @@ static void __init load_hv_initrd(void)

void __init free_initrd_mem(unsigned long begin, unsigned long end)
{
free_bootmem(begin, end - begin);
free_bootmem(__pa(begin), end - begin);
}

static void __init validate_hv(void)
Expand Down

0 comments on commit bc63de7

Please sign in to comment.