From: Heinrich Schuchardt Date: Sat, 26 May 2018 12:51:10 +0200 Subject: [U-Boot] [BUG] efi_loader: efi_add_memory_map() removes mapping even on failure Message-ID: <048fa4b8-9bb7-e67b-d273-8d24035607b1@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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