]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: catch out of memory in file_open
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 30 Jul 2023 12:06:06 +0000 (14:06 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 3 Aug 2023 07:21:03 +0000 (09:21 +0200)
commit405b736e817bbca360b2fd3329953d3980585df2
tree589a012803d978539f309bc026d90fe4d7aca5b3
parentcff7700170c2eb9d8059acbc2a5664ee9c8a8a9b
efi_loader: catch out of memory in file_open

If calloc() return NULL, don't dereference it.

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>
lib/efi_loader/efi_file.c