From: Petr Mladek Date: Mon, 25 Jun 2018 11:28:06 +0000 (+0200) Subject: Revert "lib/test_printf.c: call wait_for_random_bytes() before plain %p tests" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=043f891b70e6197bc181f3b087c2bd04c60fddd2;p=openwrt%2Fstaging%2Fblogic.git Revert "lib/test_printf.c: call wait_for_random_bytes() before plain %p tests" This reverts commit ee410f15b1418f2f4428e79980674c979081bcb7. It might prevent the machine from boot. It would wait for enough randomness at the very beginning of kernel_init(). But there is basically nothing running in parallel that would help to produce any randomness. Reported-by: Steven Rostedt (VMware) Signed-off-by: Petr Mladek --- diff --git a/lib/test_printf.c b/lib/test_printf.c index b2aa8f514844..cea592f402ed 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -260,13 +260,6 @@ plain(void) { int err; - /* - * Make sure crng is ready. Otherwise we get "(ptrval)" instead - * of a hashed address when printing '%p' in plain_hash() and - * plain_format(). - */ - wait_for_random_bytes(); - err = plain_hash(); if (err) { pr_warn("plain 'p' does not appear to be hashed\n");