Skip to content

Commit dd9089b

Browse files
Alexander GordeevVasily Gorbik
authored andcommitted
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>
1 parent 04f11ed commit dd9089b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ static void __init reserve_initrd(void)
719719
#ifdef CONFIG_BLK_DEV_INITRD
720720
if (!initrd_data.start || !initrd_data.size)
721721
return;
722-
initrd_start = initrd_data.start;
722+
initrd_start = (unsigned long)__va(initrd_data.start);
723723
initrd_end = initrd_start + initrd_data.size;
724724
memblock_reserve(initrd_data.start, initrd_data.size);
725725
#endif

0 commit comments

Comments
 (0)