mbox series

[v2,0/3] fix and refactoring of efi_disk.c

Message ID 20240117094432.1049168-1-masahisa.kojima@linaro.org
Headers show
Series fix and refactoring of efi_disk.c | expand

Message

Masahisa Kojima Jan. 17, 2024, 9:44 a.m. UTC
This series fixes the memory leak issue in lib/efi_loader/efi_disk.c
and refactor the efi_disk_remove() implementation.

[Changelog]
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 | 55 +++++++++++++++++++++++++++++----------
 1 file changed, 41 insertions(+), 14 deletions(-)