diff options
| author | Dominik Brodowski <[email protected]> | 2022-02-05 11:34:57 +0100 |
|---|---|---|
| committer | Jason A. Donenfeld <[email protected]> | 2022-02-21 16:48:06 +0100 |
| commit | 7c2fe2b32bf76441ff5b7a425b384e5f75aa530a (patch) | |
| tree | 0b34f813489d75fd777e8ec617851192b6aac819 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 77760fd7f7ae3dfd03668204e708d1568d75447d (diff) | |
random: fix locking in crng_fast_load()
crng_init is protected by primary_crng->lock, so keep holding that lock
when incrementing crng_init from 0 to 1 in crng_fast_load(). The call to
pr_notice() can wait until the lock is released; this code path cannot
be reached twice, as crng_fast_load() aborts early if crng_init > 0.
Signed-off-by: Dominik Brodowski <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions