diff options
| author | 2022-02-12 23:57:38 +0100 | |
|---|---|---|
| committer | 2022-02-21 21:14:21 +0100 | |
| commit | 1daf2f387652bf3a7044aea042f5023b3f6b189b (patch) | |
| tree | 35d8540ac2074ccf368df90e0acc1db200e594b9 /virt/git:/ssh: | |
| parent | random: unify early init crng load accounting (diff) | |
| download | linux-dev-1daf2f387652bf3a7044aea042f5023b3f6b189b.tar.xz linux-dev-1daf2f387652bf3a7044aea042f5023b3f6b189b.zip | |
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 'virt/git:/ssh:')
0 files changed, 0 insertions, 0 deletions
