aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm/mmap.c')
-rw-r--r--arch/mips/mm/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c
index 353037699512..c5fdea5debe5 100644
--- a/arch/mips/mm/mmap.c
+++ b/arch/mips/mm/mmap.c
@@ -92,7 +92,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
92 92
93 vma = find_vma(mm, addr); 93 vma = find_vma(mm, addr);
94 if (TASK_SIZE - len >= addr && 94 if (TASK_SIZE - len >= addr &&
95 (!vma || addr + len <= vma->vm_start)) 95 (!vma || addr + len <= vm_start_gap(vma)))
96 return addr; 96 return addr;
97 } 97 }
98 98