linux-stable/fs/verity
Eric Biggers 13e2408d02 fsverity: simplify error handling in verify_data_block()
Clean up the error handling in verify_data_block() to (a) eliminate the
'err' variable which has caused some confusion because the function
actually returns a bool, (b) reduce the compiled code size slightly, and
(c) execute one fewer branch in the success case.

Link: https://lore.kernel.org/r/20230604022312.48532-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
2023-06-04 05:56:11 -07:00
..
enable.c fsverity: use shash API instead of ahash API 2023-06-04 05:54:28 -07:00
fsverity_private.h fsverity: constify fsverity_hash_alg 2023-06-04 05:56:11 -07:00
hash_algs.c fsverity: constify fsverity_hash_alg 2023-06-04 05:56:11 -07:00
init.c fsverity: remove debug messages and CONFIG_FS_VERITY_DEBUG 2023-01-01 15:46:48 -08:00
Kconfig fsverity: remove debug messages and CONFIG_FS_VERITY_DEBUG 2023-01-01 15:46:48 -08:00
Makefile fs-verity: add FS_IOC_READ_VERITY_METADATA ioctl 2021-02-07 14:51:11 -08:00
measure.c fsverity: simplify fsverity_get_digest() 2022-11-29 21:07:41 -08:00
open.c fsverity: constify fsverity_hash_alg 2023-06-04 05:56:11 -07:00
read_metadata.c fs-verity: use kmap_local_page() instead of kmap() 2022-08-19 15:19:55 -07:00
signature.c fs-verity: simplify sysctls with register_sysctl() 2023-03-27 21:17:02 -07:00
verify.c fsverity: simplify error handling in verify_data_block() 2023-06-04 05:56:11 -07:00