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 /drivers/siox | |
parent | 489c7fc44b5740d377e8cfdbf0851036e493af00 (diff) |
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 'drivers/siox')
0 files changed, 0 insertions, 0 deletions