|
@@ -1600,7 +1600,7 @@ static int userfaultfd_copy(struct userfaultfd_ctx *ctx,
|
|
uffdio_copy.len);
|
|
uffdio_copy.len);
|
|
mmput(ctx->mm);
|
|
mmput(ctx->mm);
|
|
} else {
|
|
} else {
|
|
- return -ENOSPC;
|
|
|
|
|
|
+ return -ESRCH;
|
|
}
|
|
}
|
|
if (unlikely(put_user(ret, &user_uffdio_copy->copy)))
|
|
if (unlikely(put_user(ret, &user_uffdio_copy->copy)))
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
@@ -1647,7 +1647,7 @@ static int userfaultfd_zeropage(struct userfaultfd_ctx *ctx,
|
|
uffdio_zeropage.range.len);
|
|
uffdio_zeropage.range.len);
|
|
mmput(ctx->mm);
|
|
mmput(ctx->mm);
|
|
} else {
|
|
} else {
|
|
- return -ENOSPC;
|
|
|
|
|
|
+ return -ESRCH;
|
|
}
|
|
}
|
|
if (unlikely(put_user(ret, &user_uffdio_zeropage->zeropage)))
|
|
if (unlikely(put_user(ret, &user_uffdio_zeropage->zeropage)))
|
|
return -EFAULT;
|
|
return -EFAULT;
|