diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2022-01-30 22:03:20 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-02-04 19:22:32 +0100 |
commit | 9d5505f1eebeca778074a0260ed077fd85f8792c (patch) | |
tree | 1705c258ed5df7c8d10e07180af9c6623de63fd8 /include | |
parent | ebf7606388732ecf2821ca21087e9446cb4a5b57 (diff) |
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 <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions