summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-10-03 11:35:35 +0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-10-06 23:54:57 +0300
commit43a5891c66c8fe961999415b051c827ce1b543c4 (patch)
tree9d12bda5f09c758bc50aa66f9469a0d6d9c2f9c3 /include
parent16b27b67c5002c13d84bdf68727954ec765f0731 (diff)
downloadu-boot-43a5891c66c8fe961999415b051c827ce1b543c4.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/efi_driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_driver.h b/include/efi_driver.h
index 2b62219c5b..dc0c1c7ac0 100644
--- a/include/efi_driver.h
+++ b/include/efi_driver.h
@@ -25,7 +25,7 @@
struct efi_driver_ops {
const efi_guid_t *protocol;
const efi_guid_t *child_protocol;
- int (*bind)(efi_handle_t handle, void *interface);
+ efi_status_t (*bind)(efi_handle_t handle, void *interface);
};
/*