Skip to content
Commit dcf0c838 authored by Sunil V L's avatar Sunil V L Committed by Ard Biesheuvel
Browse files

riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value



The get_boot_hartid_from_fdt() function currently returns U32_MAX
for failure case which is not correct because U32_MAX is a valid
hartid value. This patch fixes the issue by returning error code.

Cc: <stable@vger.kernel.org>
Fixes: d7071743 ("RISC-V: Add EFI stub support.")
Signed-off-by: default avatarSunil V L <sunilvl@ventanamicro.com>
Reviewed-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent f5390cd0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment