summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorTony Hutter <[email protected]>2019-01-10 11:03:40 -0800
committerBrian Behlendorf <[email protected]>2019-01-28 10:11:10 -0800
commit77e50c3070a0009c4ed8b50dbb7cf0df48bdda90 (patch)
tree5dd8d9a703f9ae1392985eb9f363965d27e5c0af /module
parent5cb46f6a664db913f0ef2bf8e929c3f8d8cbfc5b (diff)
Linux 5.0 compat: access_ok() drops 'type' parameter
access_ok no longer needs a 'type' parameter in the 5.0 kernel. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #8261
Diffstat (limited to 'module')
-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)) {