diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 30794779c523..9a2156d77629 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -975,7 +975,7 @@ static void init_std_data(struct entropy_store *r) | |||
975 | 975 | ||
976 | now = ktime_get_real(); | 976 | now = ktime_get_real(); |
977 | mix_pool_bytes(r, &now, sizeof(now)); | 977 | mix_pool_bytes(r, &now, sizeof(now)); |
978 | for (i = r->poolinfo->poolwords; i; i--) { | 978 | for (i = r->poolinfo->POOLBYTES; i > 0; i -= sizeof flags) { |
979 | if (!arch_get_random_long(&flags)) | 979 | if (!arch_get_random_long(&flags)) |
980 | break; | 980 | break; |
981 | mix_pool_bytes(r, &flags, sizeof(flags)); | 981 | mix_pool_bytes(r, &flags, sizeof(flags)); |