diff options
author | Dominik Brodowski <[email protected]> | 2022-01-24 21:29:47 +0100 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2022-02-05 15:10:49 +1100 |
commit | 6ff6304497c900a0284e3aa89ad86f0ed01f86d8 (patch) | |
tree | 7ab0a7bc45432f7bea1f9965d074074207898994 /tools/perf/scripts/python | |
parent | 26a03981318d2e0f12456a1041fe3bf8af5416cf (diff) |
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 <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: Jason A. Donenfeld <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions