]> git.hungrycats.org Git - linux/commitdiff
Revert "Revert "char/random: silence a lockdep splat with printk()" because it breaks...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Thu, 26 Mar 2020 02:12:14 +0000 (22:12 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Thu, 26 Mar 2020 02:12:14 +0000 (22:12 -0400)
This reverts commit e4999ff0733549d9dfabb7239413b8660411d347.

drivers/char/random.c

index 01b8868b9bed2583ab7bcb8c3a6c727737e02628..a385fc1da1cbfc2e2410935d022cba9c700eeb73 100644 (file)
@@ -1687,8 +1687,9 @@ static void _warn_unseeded_randomness(const char *func_name, void *caller,
        print_once = true;
 #endif
        if (__ratelimit(&unseeded_warning))
-               pr_notice("random: %s called from %pS with crng_init=%d\n",
-                         func_name, caller, crng_init);
+               printk_deferred(KERN_NOTICE "random: %s called from %pS "
+                               "with crng_init=%d\n", func_name, caller,
+                               crng_init);
 }
 
 /*