diff options
| author | Dominik Brodowski <[email protected]> | 2022-01-30 21:03:20 +0000 |
|---|---|---|
| committer | Jason A. Donenfeld <[email protected]> | 2022-02-04 18:22:32 +0000 |
| commit | 9d5505f1eebeca778074a0260ed077fd85f8792c (patch) | |
| tree | 1705c258ed5df7c8d10e07180af9c6623de63fd8 /lib/string_helpers.c | |
| parent | random: access primary_pool directly rather than through pointer (diff) | |
| download | kernel-9d5505f1eebeca778074a0260ed077fd85f8792c.tar.gz kernel-9d5505f1eebeca778074a0260ed077fd85f8792c.zip | |
random: only call crng_finalize_init() for primary_crng
crng_finalize_init() returns instantly if it is called for another pool
than primary_crng. The test whether crng_finalize_init() is still required
can be moved to the relevant caller in crng_reseed(), and
crng_need_final_init can be reset to false if crng_finalize_init() is
called with workqueues ready. Then, no previous callsite will call
crng_finalize_init() unless it is needed, and we can get rid of the
superfluous function parameter.
Signed-off-by: Dominik Brodowski <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
