summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/vars.c
diff options
context:
space:
mode:
authorSunil V L <sunilvl@ventanamicro.com>2022-01-28 07:50:04 +0300
committerArd Biesheuvel <ardb@kernel.org>2022-02-28 12:07:49 +0300
commitdcf0c838854c86e1f41fb1934aea906845d69782 (patch)
tree18bd829d9db910ffec9a759b4114f52988eb1596 /drivers/firmware/efi/vars.c
parentf5390cd0b43c2e54c7cf5506c7da4a37c5cef746 (diff)
downloadlinux-dcf0c838854c86e1f41fb1934aea906845d69782.tar.xz
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: d7071743db31 ("RISC-V: Add EFI stub support.") Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/vars.c')
0 files changed, 0 insertions, 0 deletions