]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: LoadImage: always allocate new pages
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 24 Dec 2018 08:19:07 +0000 (09:19 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 16 Feb 2019 14:42:20 +0000 (15:42 +0100)
commit1c1f39910f42d126898816704b0f1a220ffdf8e5
treed369cbcbda945fc94d983d85c488fb0726e4f44b
parent27bc4c6ae41d456e9bd22cc88722b8229be2aaec
efi_loader: LoadImage: always allocate new pages

If we want to properly unload images in Exit() the memory should always be
allocated in the same way. As we allocate memory when reading from file we
should do the same when the original image is in memory.

A further patch will be needed to free the memory when Exit() is called.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_loader.h
lib/efi_loader/efi_bootmgr.c
lib/efi_loader/efi_boottime.c