diff options
author | PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com> | 2016-11-18 23:00:10 +0530 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-21 22:50:45 +0800 |
commit | ed424bb3680b6e6167a44c5c195ec8f9aea3ab3b (patch) | |
tree | 11b446c82310aad649ff7888d479dbbdc5cd2a63 /include/linux/hw_random.h | |
parent | 8ff4c191d1123ea1ba610dbc25e93568d9e7756c (diff) | |
download | lwn-ed424bb3680b6e6167a44c5c195ec8f9aea3ab3b.tar.gz lwn-ed424bb3680b6e6167a44c5c195ec8f9aea3ab3b.zip |
hwrng: Make explicit that max >= 32 always
As hw_random core calls ->read with max > 32 or more, make it explicit.
Also remove checks involving 'max' being less than 8.
Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/hw_random.h')
-rw-r--r-- | include/linux/hw_random.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h index 34a0dc18f327..bee0827766a3 100644 --- a/include/linux/hw_random.h +++ b/include/linux/hw_random.h @@ -30,8 +30,7 @@ * Must not be NULL. *OBSOLETE* * @read: New API. drivers can fill up to max bytes of data * into the buffer. The buffer is aligned for any type - * and max is guaranteed to be >= to that alignment - * (either 4 or 8 depending on architecture). + * and max is a multiple of 4 and >= 32 bytes. * @priv: Private data, for use by the RNG driver. * @quality: Estimation of true entropy in RNG's bitstream * (per mill). |