]> git.baikalelectronics.ru Git - uboot.git/commitdiff
efi_loader: use EFI_EXIT in efi_riscv_get_boot_hartid
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 11 Jan 2023 18:08:01 +0000 (19:08 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 13 Jan 2023 08:09:07 +0000 (09:09 +0100)
After calling EFI_ENTRY we have to call EFI_EXIT before returning.

Add a missing EFI_EXIT().

Fixes: 3229d53df90b ("efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support")
Reported-by: Dave Jones <dave.jones@canonical.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
lib/efi_loader/efi_riscv.c

index bccfefd8fb8fb00adeb0bfa4907ec3a10d3e90d5..064172755b95018a5b49af3e2211462348a3cab1 100644 (file)
@@ -31,7 +31,7 @@ efi_riscv_get_boot_hartid(struct riscv_efi_boot_protocol *this,
        EFI_ENTRY("%p, %p",  this, boot_hartid);
 
        if (this != &riscv_efi_boot_prot || !boot_hartid)
-               return EFI_INVALID_PARAMETER;
+               return EFI_EXIT(EFI_INVALID_PARAMETER);
 
        *boot_hartid = gd->arch.boot_hart;