Skip to content

Commit e82cf30

Browse files
btw616jmberg-intel
authored andcommitted
um: Update min_low_pfn to match changes in uml_reserved
When uml_reserved is updated, min_low_pfn must also be updated accordingly. Otherwise, min_low_pfn will not accurately reflect the lowest available PFN. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20250221041855.1156109-1-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent f664a13 commit e82cf30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/um/kernel/mem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ void __init mem_init(void)
6868
map_memory(brk_end, __pa(brk_end), uml_reserved - brk_end, 1, 1, 0);
6969
memblock_free((void *)brk_end, uml_reserved - brk_end);
7070
uml_reserved = brk_end;
71+
min_low_pfn = PFN_UP(__pa(uml_reserved));
7172

7273
/* this will put all low memory onto the freelists */
7374
memblock_free_all();

0 commit comments

Comments
 (0)