diff options
| author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-02-13 01:57:38 +0300 |
|---|---|---|
| committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-02-21 23:14:21 +0300 |
| commit | 1daf2f387652bf3a7044aea042f5023b3f6b189b (patch) | |
| tree | 35d8540ac2074ccf368df90e0acc1db200e594b9 /rust/helpers/workqueue.c | |
| parent | da792c6d5f59a76c10a310c5d4c93428fd18f996 (diff) | |
| download | linux-1daf2f387652bf3a7044aea042f5023b3f6b189b.tar.xz | |
random: check for crng_init == 0 in add_device_randomness()
This has no real functional change, as crng_pre_init_inject() (and
before that, crng_slow_init()) always checks for == 0, not >= 2. So
correct the outer unlocked change to reflect that. Before this used
crng_ready(), which was not correct.
Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-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 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions
