]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lmb: Correctly unmap memory after notifications
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 24 Oct 2024 10:46:25 +0000 (13:46 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 30 Oct 2024 19:02:45 +0000 (13:02 -0600)
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 <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/lmb.c

index 9423301cdbc19ac942e7c8d7fc6da7e23a69c227..96a055f951e657bf3acc05c9fa804698ce90c312 100644 (file)
--- 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;
 }