]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_driver: fix error handling
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 3 Oct 2022 08:35:35 +0000 (10:35 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 6 Oct 2022 20:54:57 +0000 (22:54 +0200)
commit43a5891c66c8fe961999415b051c827ce1b543c4
tree9d12bda5f09c758bc50aa66f9469a0d6d9c2f9c3
parent16b27b67c5002c13d84bdf68727954ec765f0731
efi_driver: fix error handling

If creating the block device fails,

* delete all created objects and references
* close the protocol interface on the controller

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_driver.h
lib/efi_driver/efi_block_device.c
lib/efi_driver/efi_uclass.c