aboutsummaryrefslogtreecommitdiff
path: root/lib/smbios-parser.c
diff options
context:
space:
mode:
authorMasahisa Kojima <masahisa.kojima@linaro.org>2024-01-19 09:45:44 +0900
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-01-21 11:24:24 +0100
commitf674a2f9a9f9c28fddde53f0a0b2f3e3c3b342ee (patch)
tree55c89834535660371898ede5673d00638ed1060c /lib/smbios-parser.c
parent3f7822bf9f03e6decb8e698fb4f9ac31d23725f7 (diff)
efi_loader: avoid pointer access after calling efi_delete_handle
efi_delete_handle() calls efi_purge_handle(), then it finally frees the EFI handle. Both diskobj and handle variables in efi_disk_remove() have the same pointer, we can not access diskobj->dp after calling efi_delete_handle(). This commit saves the struct efi_device_path pointer before calling efi_delete_handle(). This commit also fixes the missing free for volume member in struct efi_disk_obj. This commit also removes the container_of() calls, and adds the TODO comment of missing efi_close_protocol() call for the parent EFI_BLOCK_IO_PROTOCOL. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/smbios-parser.c')
0 files changed, 0 insertions, 0 deletions