summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2022-01-31 00:03:20 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2022-02-04 21:22:32 +0300
commit9d5505f1eebeca778074a0260ed077fd85f8792c (patch)
tree1705c258ed5df7c8d10e07180af9c6623de63fd8 /include
parentebf7606388732ecf2821ca21087e9446cb4a5b57 (diff)
downloadlinux-9d5505f1eebeca778074a0260ed077fd85f8792c.tar.xz
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