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 <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #8261
This commit is contained in:
Tony Hutter
2019-01-10 11:03:40 -08:00
committed by Brian Behlendorf
parent 5cb46f6a66
commit 77e50c3070
4 changed files with 31 additions and 2 deletions
+1 -2
View File
@@ -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)) {