aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/mti-malta/malta-memory.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/mti-malta/malta-memory.c b/arch/mips/mti-malta/malta-memory.c
index 8fddd2cdbff7..efe366d618b1 100644
--- a/arch/mips/mti-malta/malta-memory.c
+++ b/arch/mips/mti-malta/malta-memory.c
@@ -53,6 +53,12 @@ fw_memblock_t * __init fw_getmdesc(int eva)
53 pr_warn("memsize not set in YAMON, set to default (32Mb)\n"); 53 pr_warn("memsize not set in YAMON, set to default (32Mb)\n");
54 physical_memsize = 0x02000000; 54 physical_memsize = 0x02000000;
55 } else { 55 } else {
56 if (memsize > (256 << 20)) { /* memsize should be capped to 256M */
57 pr_warn("Unsupported memsize value (0x%lx) detected! "
58 "Using 0x10000000 (256M) instead\n",
59 memsize);
60 memsize = 256 << 20;
61 }
56 /* If ememsize is set, then set physical_memsize to that */ 62 /* If ememsize is set, then set physical_memsize to that */
57 physical_memsize = ememsize ? : memsize; 63 physical_memsize = ememsize ? : memsize;
58 } 64 }