Lines Matching refs:error
418 int error; in mprotect_fixup() local
436 error = walk_page_range(current->mm, start, end, in mprotect_fixup()
438 if (error) in mprotect_fixup()
439 return error; in mprotect_fixup()
478 error = split_vma(mm, vma, start, 1); in mprotect_fixup()
479 if (error) in mprotect_fixup()
484 error = split_vma(mm, vma, end, 0); in mprotect_fixup()
485 if (error) in mprotect_fixup()
518 return error; in mprotect_fixup()
529 int error = -EINVAL; in do_mprotect_pkey() local
560 error = -EINVAL; in do_mprotect_pkey()
565 error = -ENOMEM; in do_mprotect_pkey()
573 error = -EINVAL; in do_mprotect_pkey()
581 error = -EINVAL; in do_mprotect_pkey()
614 error = -EACCES; in do_mprotect_pkey()
620 error = -EINVAL; in do_mprotect_pkey()
624 error = security_file_mprotect(vma, reqprot, prot); in do_mprotect_pkey()
625 if (error) in do_mprotect_pkey()
633 error = vma->vm_ops->mprotect(vma, nstart, tmp, newflags); in do_mprotect_pkey()
634 if (error) in do_mprotect_pkey()
638 error = mprotect_fixup(vma, &prev, nstart, tmp, newflags); in do_mprotect_pkey()
639 if (error) in do_mprotect_pkey()
651 error = -ENOMEM; in do_mprotect_pkey()
658 return error; in do_mprotect_pkey()