commit | fa5be1221d925352e3b536ad5703c5435f6dcff8 | [log] [tgz] |
---|---|---|
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | Sun Nov 24 11:00:03 2024 +0200 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sun Nov 24 15:25:03 2024 +0100 |
tree | c248b9900e96ef3d4f352caadf23cfd0da2441cd | |
parent | 8968e17c4f09dcec1fa9256533b2e810b09fa970 [diff] |
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>