diff options
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r-- | arch/arm/mm/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index a7a9e41fa2c2..18144e6a3115 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -990,8 +990,8 @@ void __init sanity_check_meminfo(void) | |||
990 | * Check whether this memory bank would partially overlap | 990 | * Check whether this memory bank would partially overlap |
991 | * the vmalloc area. | 991 | * the vmalloc area. |
992 | */ | 992 | */ |
993 | if (__va(bank->start + bank->size) > vmalloc_min || | 993 | if (__va(bank->start + bank->size - 1) >= vmalloc_min || |
994 | __va(bank->start + bank->size) < __va(bank->start)) { | 994 | __va(bank->start + bank->size - 1) <= __va(bank->start)) { |
995 | unsigned long newsize = vmalloc_min - __va(bank->start); | 995 | unsigned long newsize = vmalloc_min - __va(bank->start); |
996 | printk(KERN_NOTICE "Truncating RAM at %.8llx-%.8llx " | 996 | printk(KERN_NOTICE "Truncating RAM at %.8llx-%.8llx " |
997 | "to -%.8llx (vmalloc region overlap).\n", | 997 | "to -%.8llx (vmalloc region overlap).\n", |