Lines Matching refs:error
582 int error; in apply_vma_lock_flags() local
608 error = mlock_fixup(vma, &prev, nstart, tmp, newflags); in apply_vma_lock_flags()
609 if (error) in apply_vma_lock_flags()
619 error = -ENOMEM; in apply_vma_lock_flags()
623 return error; in apply_vma_lock_flags()
669 int error = -ENOMEM; in do_mlock() local
700 error = apply_vma_lock_flags(start, len, flags); in do_mlock()
703 if (error) in do_mlock()
704 return error; in do_mlock()
706 error = __mm_populate(start, len, 0); in do_mlock()
707 if (error) in do_mlock()
708 return __mlock_posix_error_return(error); in do_mlock()