From: Ilias Apalodimas Date: Thu, 24 Oct 2024 10:46:25 +0000 (+0300) Subject: lmb: Correctly unmap memory after notifications X-Git-Url: http://git.dujemihanovic.xyz/html/%7B%7B%20.RelPermalink%20%7D%7D?a=commitdiff_plain;h=e26d2cab4285d2953879054a4ff6955fb756a6d4;p=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 9423301cdb..96a055f951 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; }