diff options
| author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-02-04 01:45:53 +0100 |
|---|---|---|
| committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-02-21 16:48:06 +0100 |
| commit | a49c010e61e1938be851f5e49ac219d49b704103 (patch) | |
| tree | e6e21870540911035caa454ceea1036ce26e1402 /tools/perf/scripts/python | |
| parent | random: always wake up entropy writers after extraction (diff) | |
| download | linux-a49c010e61e1938be851f5e49ac219d49b704103.tar.gz linux-a49c010e61e1938be851f5e49ac219d49b704103.zip | |
random: make credit_entropy_bits() always safe
This is called from various hwgenerator drivers, so rather than having
one "safe" version for userspace and one "unsafe" version for the
kernel, just make everything safe; the checks are cheap and sensible to
have anyway.
Reported-by: Sultan Alsawaf <sultan@kerneltoast.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
