random: initialize the non-blocking pool via add_hwgenerator_randomness()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 12 Jun 2016 22:11:51 +0000 (18:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:09:20 +0000 (18:09 +0200)
commitf41fc0bfede5bbeca4f09d75c76c4db5d6c0d2ee
tree989c683e91c7282f439370ba6b6fc45c908a547a
parentadc58bfd4d75183a65f806b1b5354d1b65f832c6
random: initialize the non-blocking pool via add_hwgenerator_randomness()

commit 3371f3da08cff4b75c1f2dce742d460539d6566d upstream.

If we have a hardware RNG and are using the in-kernel rngd, we should
use this to initialize the non-blocking pool so that getrandom(2)
doesn't block unnecessarily.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c