aboutsummaryrefslogtreecommitdiffstats
path: root/module/zcommon/zfs_fletcher_avx512.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zcommon/zfs_fletcher_avx512.c')
-rw-r--r--module/zcommon/zfs_fletcher_avx512.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zcommon/zfs_fletcher_avx512.c b/module/zcommon/zfs_fletcher_avx512.c
index 7260a9864..0d4cff21a 100644
--- a/module/zcommon/zfs_fletcher_avx512.c
+++ b/module/zcommon/zfs_fletcher_avx512.c
@@ -157,7 +157,7 @@ STACK_FRAME_NON_STANDARD(fletcher_4_avx512f_byteswap);
static boolean_t
fletcher_4_avx512f_valid(void)
{
- return (zfs_avx512f_available());
+ return (kfpu_allowed() && zfs_avx512f_available());
}
const fletcher_4_ops_t fletcher_4_avx512f_ops = {