]> git.dujemihanovic.xyz Git - u-boot.git/commit
lmb: Correctly unmap and free memory on errors
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Sun, 24 Nov 2024 09:00:03 +0000 (11:00 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 24 Nov 2024 14:25:03 +0000 (15:25 +0100)
commit967d57ab592ce1bcab0785f8483b1b43c2d881aa
treec248b9900e96ef3d4f352caadf23cfd0da2441cd
parent9c792ab336f7146e8d49bca6d9d093d2392ded5d
lmb: Correctly unmap and free memory on errors

We never free and unmap the memory on errors and we never unmap it when
freeing it. The latter won't cause any problems even on sandbox, but for
consistency always use unmap_sysmem()

Fixes: commit 22f2c9ed9f53 ("efi: memory: use the lmb API's for allocating and freeing memory")
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_memory.c