diff options
author | 2022-01-30 22:03:20 +0100 | |
---|---|---|
committer | 2022-02-04 19:22:32 +0100 | |
commit | 9d5505f1eebeca778074a0260ed077fd85f8792c (patch) | |
tree | 1705c258ed5df7c8d10e07180af9c6623de63fd8 /scripts/gdb/linux/utils.py | |
parent | random: access primary_pool directly rather than through pointer (diff) | |
download | wireguard-linux-9d5505f1eebeca778074a0260ed077fd85f8792c.tar.xz wireguard-linux-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 <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions