path: root/arch/mips/kernel/vpe.c
diff options
authorRalf Baechle <ralf@linux-mips.org>2008-04-17 13:42:50 +0100
committerRalf Baechle <ralf@linux-mips.org>2008-05-12 16:46:51 +0100
commit9f2546adedda600687bba6ef3e1546a8ecbc16eb (patch)
tree083ac68a95a84ca6175ef7d581557a7b4e029fae /arch/mips/kernel/vpe.c
parentd0e7ba063233105febd960e0716d5e9fd9159307 (diff)
[MIPS] Don't use max_pfn which is no longer initialized these days.
Still won't play nicely with esotheric configurations such as discontig memory ... Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/vpe.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index f73a89850a2..fa67e400696 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -269,7 +269,7 @@ static void *alloc_progmem(unsigned long len)
* This means you must tell Linux to use less memory than you
* physically have, for example by passing a mem= boot argument.
- addr = pfn_to_kaddr(max_pfn);
+ addr = pfn_to_kaddr(max_low_pfn);
memset(addr, 0, len);
/* simple grab some mem for now */