mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
autoconf: Fail when __copy_from_user_inatomic is a non-GPL symbol
A followup to 849c14e048
Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009242
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #13389
This commit is contained in:
committed by
Brian Behlendorf
parent
f567d67fda
commit
e0911f7b7f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user