Revert "random: block in /dev/urandom"
[platform/kernel/linux-starfive.git] / drivers / char / mem.c
index 9f58602..cc296f0 100644 (file)
@@ -707,7 +707,7 @@ static const struct memdev {
         [5] = { "zero", 0666, &zero_fops, FMODE_NOWAIT },
         [7] = { "full", 0666, &full_fops, 0 },
         [8] = { "random", 0666, &random_fops, 0 },
-        [9] = { "urandom", 0666, &random_fops, 0 },
+        [9] = { "urandom", 0666, &urandom_fops, 0 },
 #ifdef CONFIG_PRINTK
        [11] = { "kmsg", 0644, &kmsg_fops, 0 },
 #endif