From e26d2cab4285d2953879054a4ff6955fb756a6d4 Mon Sep 17 00:00:00 2001 From: Ilias Apalodimas Date: Thu, 24 Oct 2024 13:46:25 +0300 Subject: [PATCH] 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 --- lib/lmb.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.5