diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-05-20 02:31:36 +0300 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-05-20 19:26:48 +0300 |
commit | 1b388e7765f2eaa137cf5d92b47ef5925ad83ced (patch) | |
tree | fac4708792f2b6619393fdbbff2f26062f3de166 /scripts/gdb/linux/utils.py | |
parent | 3092adcef3ffd2ef59634998297ca8358461ebce (diff) | |
download | linux-1b388e7765f2eaa137cf5d92b47ef5925ad83ced.tar.xz |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions