--- zzzz-none-000/linux-3.10.107/arch/arc/mm/mmap.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arc/mm/mmap.c 2021-02-04 17:41:59.000000000 +0000 @@ -64,7 +64,7 @@ vma = find_vma(mm, addr); if (TASK_SIZE - len >= addr && - (!vma || addr + len <= vm_start_gap(vma))) + (!vma || addr + len <= vma->vm_start)) return addr; }