diff options
Diffstat (limited to 'drivers/char/hw_random/core.c')
-rw-r--r-- | drivers/char/hw_random/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 83161dde53ee..571ef61f8ea9 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c | |||
@@ -179,7 +179,8 @@ skip_init: | |||
179 | add_early_randomness(rng); | 179 | add_early_randomness(rng); |
180 | 180 | ||
181 | current_quality = rng->quality ? : default_quality; | 181 | current_quality = rng->quality ? : default_quality; |
182 | current_quality &= 1023; | 182 | if (current_quality > 1024) |
183 | current_quality = 1024; | ||
183 | 184 | ||
184 | if (current_quality == 0 && hwrng_fill) | 185 | if (current_quality == 0 && hwrng_fill) |
185 | kthread_stop(hwrng_fill); | 186 | kthread_stop(hwrng_fill); |