diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-03-04 17:50:05 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-04-07 14:17:06 +0200 |
commit | b0c3c346c6d7ec44363037ad55fdfad4c3b474d1 (patch) | |
tree | 10956d728a09195f3c1d3e866aa901cbb1219786 /lib/efi_loader/efi_device_path_utilities.c | |
parent | 0e62d5b2abb69ddc9e58215e2d8dfa5d33996b8a (diff) |
efi_loader: release file buffer after loading image
Commit 0e18f584de59 ("efi_loader: LoadImage: always allocate new pages")
ensured that whether we load an image from file or from memory we end up
with the same number of newly allocated buffers. But essentially we ended
up with one buffer too many in both cases:
efi_load_pe() copies and rebases the UEFI image.
We do not need the buffer with the file contents afterwards.
Fixes: 0e18f584de59 ("efi_loader: LoadImage: always allocate new pages")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_device_path_utilities.c')
0 files changed, 0 insertions, 0 deletions