This is the minimal change to make "mlockall()" not complain about
the occasional PROT_NONE area.
PROT_NONE is commonly used on x86-64, and is no reason to not lock
in the rest of the mappings into memory.
newflags = vma->vm_flags | VM_LOCKED;
if (!(flags & MCL_CURRENT))
newflags &= ~VM_LOCKED;
- error = mlock_fixup(vma, vma->vm_start, vma->vm_end, newflags);
- if (error)
- break;
+
+ /* Ignore errors */
+ mlock_fixup(vma, vma->vm_start, vma->vm_end, newflags);
}
return error;
}