diff options
author | Eric Biggers <[email protected]> | 2023-07-05 14:27:42 -0700 |
---|---|---|
committer | Eric Biggers <[email protected]> | 2023-07-11 22:49:18 -0700 |
commit | e77000ccc531088c486fe5fbd13416fd5e3d2714 (patch) | |
tree | cc75f2c75caa4054a06635125884bf67210aa066 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 5d37a1198068b099de47073411efc087d1b555ca (diff) |
fsverity: simplify handling of errors during initcall
Since CONFIG_FS_VERITY is a bool, not a tristate, fs/verity/ can only be
builtin or absent entirely; it can't be a loadable module. Therefore,
the error code that gets returned from the fsverity_init() initcall is
never used. If any part of the initcall does fail, which should never
happen, the kernel will be left in a bad state.
Following the usual convention for builtin code, just panic the kernel
if any of part of the initcall fails.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions