Merge tag 'mm-stable-2024-03-13-20-04' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / arch / arm64 / mm / init.c
index c1f6213..03efd86 100644 (file)
@@ -238,7 +238,7 @@ void __init arm64_memblock_init(void)
         * physical address of PAGE_OFFSET, we have to *subtract* from it.
         */
        if (IS_ENABLED(CONFIG_ARM64_VA_BITS_52) && (vabits_actual != 52))
-               memstart_addr -= _PAGE_OFFSET(48) - _PAGE_OFFSET(52);
+               memstart_addr -= _PAGE_OFFSET(vabits_actual) - _PAGE_OFFSET(52);
 
        /*
         * Apply the memory limit if it was set. Since the kernel may be loaded