diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-05-19 17:31:36 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-05-20 18:26:48 +0200 |
commit | 1b388e7765f2eaa137cf5d92b47ef5925ad83ced (patch) | |
tree | fac4708792f2b6619393fdbbff2f26062f3de166 /kernel | |
parent | 3092adcef3ffd2ef59634998297ca8358461ebce (diff) |
random: convert to using fops->read_iter()
This is a pre-requisite to wiring up splice() again for the random
and urandom drivers. It also allows us to remove the INT_MAX check in
getrandom(), because import_single_range() applies capping internally.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[Jason: rewrote get_random_bytes_user() to simplify and also incorporate
additional suggestions from Al.]
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions