summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2019-12-23 00:20:45 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-25 11:48:58 +0200
commitf897718c703e1301aaba0e23662bbfd491387c1b (patch)
treeffc2223d0f5761cdc754272879b707d776124998 /include/uapi
parentb3284ff69216a05dfe1056d138a57483e8586a76 (diff)
random: Add a urandom_read_nowait() for random APIs that don't warn
commit c6f1deb158789abba02a7eba600747843eeb3a57 upstream. /dev/random and getrandom() never warn. Split the meat of urandom_read() into urandom_read_nowarn() and leave the warning code in urandom_read(). This has no effect on kernel behavior, but it makes subsequent patches more straightforward. It also makes the fact that getrandom() never warns more obvious. Signed-off-by: Andy Lutomirski <luto@kernel.org> Link: https://lore.kernel.org/r/c87ab200588de746431d9f916501ef11e5242b13.1577088521.git.luto@kernel.org Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions