diff options
author | szubersk <[email protected]> | 2022-05-07 00:53:42 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-11 10:32:51 -0700 |
commit | e0911f7b7f1ebd9aa00c198b87618b0308fe8c85 (patch) | |
tree | b2e4cc53e2d86ec075d61ea6b0b5942087eeac62 /module | |
parent | f567d67fdae5819ec25048a8b5d648fc14e6defe (diff) |
autoconf: Fail when __copy_from_user_inatomic is a non-GPL symbol
A followup to 849c14e04844a2f0e1f7e42886c2cef083563f35
Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009242
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #13389
Diffstat (limited to 'module')
-rw-r--r-- | module/os/linux/zfs/zfs_uio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/module/os/linux/zfs/zfs_uio.c b/module/os/linux/zfs/zfs_uio.c index 0d4b4c583..4f31bcb59 100644 --- a/module/os/linux/zfs/zfs_uio.c +++ b/module/os/linux/zfs/zfs_uio.c @@ -75,7 +75,6 @@ zfs_uiomove_iov(void *p, size_t n, zfs_uio_rw_t rw, zfs_uio_t *uio) } else { unsigned long b_left = 0; if (uio->uio_fault_disable) { -#if defined(HAVE___COPY_FROM_USER_INATOMIC) if (!zfs_access_ok(VERIFY_READ, (iov->iov_base + skip), cnt)) { return (EFAULT); @@ -85,9 +84,6 @@ zfs_uiomove_iov(void *p, size_t n, zfs_uio_rw_t rw, zfs_uio_t *uio) __copy_from_user_inatomic(p, (iov->iov_base + skip), cnt); pagefault_enable(); -#else - return (EFAULT); -#endif } else { b_left = copy_from_user(p, |