aboutsummaryrefslogtreecommitdiffstats
path: root/module/zcommon/zfs_uio.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zcommon/zfs_uio.c')
-rw-r--r--module/zcommon/zfs_uio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zcommon/zfs_uio.c b/module/zcommon/zfs_uio.c
index a2c1b5c3a..c1e31f51b 100644
--- a/module/zcommon/zfs_uio.c
+++ b/module/zcommon/zfs_uio.c
@@ -81,11 +81,10 @@ uiomove_iov(void *p, size_t n, enum uio_rw rw, struct uio *uio)
return (EFAULT);
} else {
if (uio->uio_fault_disable) {
- if (!access_ok(VERIFY_READ,
+ if (!zfs_access_ok(VERIFY_READ,
(iov->iov_base + skip), cnt)) {
return (EFAULT);
}
-
pagefault_disable();
if (__copy_from_user_inatomic(p,
(iov->iov_base + skip), cnt)) {