]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
random: access input_pool_data directly rather than through pointer
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 15 Jan 2022 13:40:04 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:46:32 +0000 (11:46 +0200)
commit166f9970b82af96899566d30a1ef199e09c46b71
tree34118952e16dc4bdaf325b35a7911a0ccc315045
parent563845199476a6ded17bde9a3163101c99ede919
random: access input_pool_data directly rather than through pointer

commit 6c0eace6e1499712583b6ee62d95161e8b3449f5 upstream.

This gets rid of another abstraction we no longer need. It would be nice
if we could instead make pool an array rather than a pointer, but the
latent entropy plugin won't be able to do its magic in that case. So
instead we put all accesses to the input pool's actual data through the
input_pool_data array directly.

Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c