aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2022-01-24 21:29:47 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2022-02-05 15:10:49 +1100
commit6ff6304497c900a0284e3aa89ad86f0ed01f86d8 (patch)
tree7ab0a7bc45432f7bea1f9965d074074207898994 /tools/perf/scripts/python
parenthwrng: core - explicit ordering of initcalls (diff)
downloadlinux-6ff6304497c900a0284e3aa89ad86f0ed01f86d8.tar.gz
linux-6ff6304497c900a0284e3aa89ad86f0ed01f86d8.zip
hwrng: core - read() callback must be called for size of 32 or more bytes
According to <linux/hw_random.h>, the @max parameter of the ->read callback "is a multiple of 4 and >= 32 bytes". That promise was not kept by add_early_randomness(), which only asked for 16 bytes. As rng_buffer_size() is at least 32, we can simply ask for 32 bytes. Cc: Matt Mackall <mpm@selenic.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions