efi_loader: illegal free in EFI_LOAD_FILE2_PROTOCOL
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 3 Oct 2020 10:50:52 +0000 (12:50 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 6 Oct 2020 05:43:56 +0000 (07:43 +0200)
commite2aff337ed53ada0abdbc38d0afa8d6f209bf4ab
tree95c4edcf449a87e73b1ac16658dc125451a22cbc
parent5cd28e17600458ee99e69a86856f2b7e8eddd0c0
efi_loader: illegal free in EFI_LOAD_FILE2_PROTOCOL

strsep() changes the address that its first argument points to.
We cannot use the changed address as argument of free().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_load_initrd.c