[PATCH v3 0/3] fix and refactoring of efi_disk.c
Masahisa Kojima
masahisa.kojima at linaro.org
Fri Jan 19 01:45:43 CET 2024
This series fixes the memory leak issue in lib/efi_loader/efi_disk.c
and refactor the efi_disk_remove() implementation.
[Changelog]
v2 -> v3
- remove unnecessary NULL check
v1 -> v2
- remove already merged patch
- remove container_of() calls
- add TODO comments
- return immediately in UCLASS_EFI_LOADER removal
Masahisa Kojima (3):
efi_loader: avoid pointer access after calling efi_delete_handle
efi_loader: create common function to free struct efi_disk_obj
efi_loader: return immediately in UCLASS_EFI_LOADER removal
lib/efi_loader/efi_disk.c | 52 ++++++++++++++++++++++++++++-----------
1 file changed, 38 insertions(+), 14 deletions(-)
--
2.34.1
More information about the U-Boot
mailing list