linux/arch/x86/purgatory
Thorsten Blum 10a357ce44 x86/purgatory: Return bool from verify_sha256_digest()
Change the function's return type from 'int' to 'bool' and return the result
of memcmp() directly to simplify the code.  While at it, cast ->start to
const u8 * to better match the expected type.

Also inline the verify_sha256_digest() check and remove the redundant
local 'ret' variable in purgatory().

No change in functionality expected.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://patch.msgid.link/20260723133634.161598-3-thorsten.blum@linux.dev
2026-07-23 15:45:02 +02:00
..
.gitignore x86/purgatory: Fail the build if purgatory.ro has missing symbols 2020-03-17 15:59:12 +01:00
entry64.S x86/asm/purgatory: Start using annotations 2019-10-18 10:48:43 +02:00
kexec-purgatory.S x86/purgatory: Omit use of bin2c 2022-07-25 10:32:32 +02:00
Makefile kcfi: Rename CONFIG_CFI_CLANG to CONFIG_CFI 2025-09-24 14:29:14 -07:00
purgatory.c x86/purgatory: Return bool from verify_sha256_digest() 2026-07-23 15:45:02 +02:00
setup-x86_64.S x86/asm/purgatory: Start using annotations 2019-10-18 10:48:43 +02:00
stack.S x86/asm/purgatory: Start using annotations 2019-10-18 10:48:43 +02:00