From: Ilias Apalodimas Date: Thu, 24 Oct 2024 10:46:25 +0000 (+0300) Subject: lmb: Correctly unmap memory after notifications X-Git-Tag: v2025.01-rc2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e26d2cab4285d2953879054a4ff6955fb756a6d4;p=pandora-u-boot.git lmb: Correctly unmap memory after notifications We never unmap the memory used to update the EFI memory map after notifications Fixes: commit 2f6191526a13 ("lmb: notify of any changes to the LMB memory map") Signed-off-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- diff --git a/lib/lmb.c b/lib/lmb.c index 9423301cdbc..96a055f951e 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -65,6 +65,7 @@ static int __maybe_unused lmb_map_update_notify(phys_addr_t addr, status & ~EFI_ERROR_MASK); return -1; } + unmap_sysmem((void *)(uintptr_t)efi_addr); return 0; }