summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/random.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index c35cee268e13..6b75713d953a 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1307,6 +1307,9 @@ static int arch_random_refill(void)
unsigned int i;
unsigned long buf[nlongs];
+ if (!arch_has_random_seed())
+ return 0;
+
for (i = 0; i < nlongs; i++) {
if (arch_get_random_seed_long(&buf[n]))
n++;