Skip to contentSkip to conversation

efi_loader: efi_add_memory_map() removes mapping even on failure

U-Boot Heinrich Schuchardt 1 participant 1 message May 26, 2018

lore
Share & tools
lore
#0 lore raw

Hello Alex,

when I read through efi_add_memory_map() it seems that the function will delete mappings even if it later decides to return an error (e.g. EFI_CARVE_OVERLAPS_NONRAM or overlap with non-RAM).

Shouldn't existing mappings remain untouched if an error occurs?

Best regards

Heinrich