diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 13c7a3d96c4b..377fad05fb5e 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -812,7 +812,7 @@ static unsigned long __thp_get_unmapped_area(struct file *filp, loff_t off_align = round_up(off, size); unsigned long len_pad, ret, off_sub; - if (IS_ENABLED(CONFIG_32BIT) || in_compat_syscall()) + if (!IS_ENABLED(CONFIG_64BIT) || in_compat_syscall()) return 0; if (off_end <= off_align || (off_end - off_align) < size)