aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/libstub/efi-stub-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/efi/libstub/efi-stub-helper.c')
-rw-r--r--drivers/firmware/efi/libstub/efi-stub-helper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/firmware/efi/libstub/efi-stub-helper.c b/drivers/firmware/efi/libstub/efi-stub-helper.c
index 29ed2f9b218c..3bd127f95315 100644
--- a/drivers/firmware/efi/libstub/efi-stub-helper.c
+++ b/drivers/firmware/efi/libstub/efi-stub-helper.c
@@ -125,10 +125,12 @@ unsigned long get_dram_base(efi_system_table_t *sys_table_arg)
125 125
126 map.map_end = map.map + map_size; 126 map.map_end = map.map + map_size;
127 127
128 for_each_efi_memory_desc(&map, md) 128 for_each_efi_memory_desc_in_map(&map, md) {
129 if (md->attribute & EFI_MEMORY_WB) 129 if (md->attribute & EFI_MEMORY_WB) {
130 if (membase > md->phys_addr) 130 if (membase > md->phys_addr)
131 membase = md->phys_addr; 131 membase = md->phys_addr;
132 }
133 }
132 134
133 efi_call_early(free_pool, map.map); 135 efi_call_early(free_pool, map.map);
134 136