mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
random: update comment from copy_to_user() -> copy_to_iter()
commit63b8ea5e4f
upstream. This comment wasn't updated when we moved from read() to read_iter(), so this patch makes the trivial fix. Fixes:1b388e7765
("random: convert to using fops->read_iter()") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7a3a468356
commit
46a78d1413
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ static ssize_t get_random_bytes_user(struct iov_iter *iter)
|
|||
|
||||
/*
|
||||
* Immediately overwrite the ChaCha key at index 4 with random
|
||||
* bytes, in case userspace causes copy_to_user() below to sleep
|
||||
* bytes, in case userspace causes copy_to_iter() below to sleep
|
||||
* forever, so that we still retain forward secrecy in that case.
|
||||
*/
|
||||
crng_make_state(chacha_state, (u8 *)&chacha_state[4], CHACHA_KEY_SIZE);
|
||||
|
|
Loading…
Reference in a new issue