]> git.itanic.dy.fi Git - linux-stable/commit
random: clear new batches when bringing new CPUs online
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 5 Oct 2022 10:54:38 +0000 (12:54 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 6 Oct 2022 15:35:55 +0000 (09:35 -0600)
commita890d1c657ecba73a7b28591c92587aef1be1888
tree68fb9a77194451d4b78fb5a87ee2ff2974ad36a8
parentd687772e6d2cbffd91fdda64812f79192c1e7ca0
random: clear new batches when bringing new CPUs online

The commit that added the new get_random_{u8,u16}() functions neglected
to update the code that clears the batches when bringing up a new CPU.
It also forgot a few comments and helper defines, so add those in too.

Fixes: 585cd5fe9f73 ("random: add 8-bit and 16-bit batches")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c
include/linux/random.h