]> git.baikalelectronics.ru Git - kernel.git/commit
certs: Explain the rationale to call panic()
authorMickaël Salaün <mic@linux.microsoft.com>
Tue, 22 Mar 2022 11:13:23 +0000 (12:13 +0100)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 23 May 2022 15:47:49 +0000 (18:47 +0300)
commit13cf18a06a6f2a74806df90724978d36795d30d6
tree9284e44c14cdfc59563710ff95247237a6f3f7e5
parent1a098621e6853a41ed036ed3b7e7a0ebeba31aaf
certs: Explain the rationale to call panic()

The blacklist_init() function calls panic() for memory allocation
errors.  This change documents the reason why we don't return -ENODEV.

Link: https://lore.kernel.org/r/20220322111323.542184-2-mic@digikod.net
Link: https://lore.kernel.org/r/YjeW2r6Wv55Du0bJ@iki.fi
Suggested-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
certs/blacklist.c