diff --git a/mm/mremap.c b/mm/mremap.c index 2dc44b1cb1dfc2f6d644d2d655155e6cfce2bdeb..1fb0f9069653aca37d15c0c7dfc9b4305935f162 100644 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -381,7 +381,7 @@ static struct vm_area_struct *vma_to_resize(unsigned long addr, if (vma->vm_flags & VM_ACCOUNT) { unsigned long charged = (new_len - old_len) >> PAGE_SHIFT; if (security_vm_enough_memory_mm(mm, charged)) - goto Efault; + goto Enomem; *p = charged; }