[U-Boot] [BUG] efi_loader: efi_add_memory_map() removes mapping even on failure

Heinrich Schuchardt xypron.glpk at gmx.de
Sat May 26 10:51:10 UTC 2018


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


More information about the U-Boot mailing list