X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=arch%2Fmips%2Fmm%2Fmmap.c;h=0bb42959948e2eac4f4d45cc915db3c5b3516c2b;hb=073b9047a02b15d6145346d0b94c1aa009d344f0;hp=7e5fe2790d8a212a8d0163989280918d26a46a3c;hpb=5da273fe3fd137c6ae4acf74b7449500f5e4dc09;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c index 7e5fe2790d8a..0bb42959948e 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, vma = find_vma(mm, addr); if (TASK_SIZE - len >= addr && - (!vma || addr + len <= vma->vm_start)) + (!vma || addr + len <= vm_start_gap(vma))) return addr; }