mbox series

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

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

Message

Masahisa Kojima Jan. 19, 2024, 12:45 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]
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(-)