Merge tag 'mm-nonmm-stable-2023-04-27-16-01' of git://git.kernel.org/pub/scm/linux...
[platform/kernel/linux-starfive.git] / arch / ia64 / mm / hugetlbpage.c
index 9e8960e..78a02e0 100644 (file)
@@ -170,7 +170,7 @@ static int __init hugetlb_setup_sz(char *str)
        size = memparse(str, &str);
        if (*str || !is_power_of_2(size) || !(tr_pages & size) ||
                size <= PAGE_SIZE ||
-               size >= (1UL << PAGE_SHIFT << MAX_ORDER)) {
+               size > (1UL << PAGE_SHIFT << MAX_ORDER)) {
                printk(KERN_WARNING "Invalid huge page size specified\n");
                return 1;
        }