summaryrefslogtreecommitdiff
path: root/include/linux/hw_random.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-02-13 01:57:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-30 10:33:36 +0300
commit32252548b50fca325d8964b945dbb787934ab861 (patch)
tree73786656b002a8bb710c12b6124632c2d2d8a39f /include/linux/hw_random.h
parent684e9fe92d440b7700672118675ae8a8ace228bb (diff)
downloadlinux-32252548b50fca325d8964b945dbb787934ab861.tar.xz
random: check for crng_init == 0 in add_device_randomness()
commit 1daf2f387652bf3a7044aea042f5023b3f6b189b upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/hw_random.h')
0 files changed, 0 insertions, 0 deletions