diff options
| author | Jason A. Donenfeld <[email protected]> | 2018-02-04 22:07:46 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2018-02-28 22:59:21 +0000 |
| commit | 25e3fca492035a2e1d4ac6e3b1edd9c1acd48897 (patch) | |
| tree | 18b2960df3683d779c53b8f591463091eae30f19 /drivers/fpga/fpga-region.c | |
| parent | random: use a tighter cap in credit_entropy_bits_safe() (diff) | |
| download | kernel-25e3fca492035a2e1d4ac6e3b1edd9c1acd48897.tar.gz kernel-25e3fca492035a2e1d4ac6e3b1edd9c1acd48897.zip | |
random: always fill buffer in get_random_bytes_wait
In the unfortunate event that a developer fails to check the return
value of get_random_bytes_wait, or simply wants to make a "best effort"
attempt, for whatever that's worth, it's much better to still fill the
buffer with _something_ rather than catastrophically failing in the case
of an interruption. This is both a defense in depth measure against
inevitable programming bugs, as well as a means of making the API a bit
more useful.
Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions
