diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2022-02-09 19:57:06 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-02-21 21:14:00 +0100 |
commit | 7191c628fe07b70d3f37de736d173d1b115396ed (patch) | |
tree | 158902b21e512d00d2f13d58367e8e37a1384e5b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7b5164fb1279bf0251371848e40bae646b59b3a8 (diff) |
random: fix locking for crng_init in crng_reseed()
crng_init is protected by primary_crng->lock. Therefore, we need
to hold this lock when increasing crng_init to 2. As we shouldn't
hold this lock for too long, only hold it for those parts which
require protection.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions