diff options
author | Alexander Gordeev <agordeev@linux.ibm.com> | 2021-10-07 16:01:39 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2021-10-26 16:21:28 +0300 |
commit | dd9089b65407756e3490ab2737373f957a650375 (patch) | |
tree | 66308d118235d6f3cd3bb4aedef5b35b171d8347 /arch/s390 | |
parent | 04f11ed7d8e018e1f01ebda5814ddfeb3a1e6ae1 (diff) | |
download | linux-dd9089b65407756e3490ab2737373f957a650375.tar.xz |
s390/setup: convert start and end initrd pointers to virtual
Variables initrd_start and initrd_end are expected to hold
virtual memory pointers, not physical.
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 9dbde3697bdf..860a4e6ebaf9 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -719,7 +719,7 @@ static void __init reserve_initrd(void) #ifdef CONFIG_BLK_DEV_INITRD if (!initrd_data.start || !initrd_data.size) return; - initrd_start = initrd_data.start; + initrd_start = (unsigned long)__va(initrd_data.start); initrd_end = initrd_start + initrd_data.size; memblock_reserve(initrd_data.start, initrd_data.size); #endif |