]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: error handling in efi_disk_add_dev
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 30 Jul 2023 12:03:53 +0000 (14:03 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 3 Aug 2023 07:21:03 +0000 (09:21 +0200)
commitcff7700170c2eb9d8059acbc2a5664ee9c8a8a9b
tree816c770d332a8dbbd9bbe32691253df2f839eedd
parentecae4bbf35fac3cde0c41c012a05c8e5b4ade90f
efi_loader: error handling in efi_disk_add_dev

* If an error occurs in efi_disk_add_dev(), don't leak resources.
* If calloc() fails while creating the file system protocol interface,
  signal an error.
* Rename efi_simple_file_system() to efi_create_simple_file_system().
* Drop a little helpful debug message.

Fixes: 2a92080d8c44 ("efi_loader: add file/filesys support")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/efi_loader.h
lib/efi_loader/efi_disk.c
lib/efi_loader/efi_file.c