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)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 18 Jan 2022 12:03:56 +0000 (13:03 +0100)
commit6c0eace6e1499712583b6ee62d95161e8b3449f5
tree3e1327052bf302aa9d69a99ded5acc73095ec798
parent18263c4e8e62f7329f38f5eadc568751242ca89c
random: access input_pool_data directly rather than through pointer

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>
drivers/char/random.c