diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-10-07 23:53:38 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-10-10 16:34:25 +0200 |
commit | fcdf531dbc7b8869d97bf76d0e81c23b91156c6e (patch) | |
tree | f089f0e030bf4459853fdd1f24517b6fe6b2365f | |
parent | 4d9668befc3d54c11d8b431a514e240320cd8e74 (diff) | |
download | u-boot-fcdf531dbc7b8869d97bf76d0e81c23b91156c6e.zip u-boot-fcdf531dbc7b8869d97bf76d0e81c23b91156c6e.tar.gz u-boot-fcdf531dbc7b8869d97bf76d0e81c23b91156c6e.tar.bz2 |
efi_driver: fix efi_uc_stop()
We must always call EFI_EXIT() when returning from an EFIAPI function.
Fixes: 05ef48a2484b ("efi_driver: EFI block driver")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r-- | lib/efi_driver/efi_uclass.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/efi_driver/efi_uclass.c b/lib/efi_driver/efi_uclass.c index 2193f84..45610d1 100644 --- a/lib/efi_driver/efi_uclass.c +++ b/lib/efi_driver/efi_uclass.c @@ -225,9 +225,10 @@ static efi_status_t EFIAPI efi_uc_stop( ret = disconnect_child(controller_handle, child_handle_buffer[i]); if (ret != EFI_SUCCESS) - return ret; + goto out; } - return EFI_SUCCESS; + ret = EFI_SUCCESS; + goto out; } /* Destroy all children */ |