Re: [PATCH v2 1/1] certs: Explain the rationale to call panic()
From: David Howells
Date: Wed Mar 30 2022 - 08:53:43 EST
Mickaël Salaün <mic@xxxxxxxxxxx> wrote:
> The blacklist_init() function calls panic() for memory allocation
> errors. This change documents the reason why we don't return -ENODEV.
Why, though?
This is only called whilst the kernel is booting. If you hit ENOMEM, you
aren't likely to get much further with the boot process.
David