Skip to content

Commit

Permalink
s390/setup: convert start and end initrd pointers to virtual
Browse files Browse the repository at this point in the history
Variables initrd_start and initrd_end are expected to hold
virtual memory pointers, not physical.

Reviewed-by: Heiko Carstens <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
  • Loading branch information
Alexander Gordeev authored and Vasily Gorbik committed Oct 26, 2021
1 parent 04f11ed commit dd9089b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd9089b

Please sign in to comment.