diff options
| author | Petr Mladek <pmladek@suse.com> | 2018-06-25 07:28:06 -0400 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2018-06-25 07:44:20 -0400 |
| commit | 043f891b70e6197bc181f3b087c2bd04c60fddd2 (patch) | |
| tree | 5859c56e3c65c12608e5fba4c785b787e32e1484 /lib/test_printf.c | |
| parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) | |
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) <rostedt@goodmis.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'lib/test_printf.c')
| -rw-r--r-- | lib/test_printf.c | 7 |
1 files changed, 0 insertions, 7 deletions
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) | |||
| 260 | { | 260 | { |
| 261 | int err; | 261 | int err; |
| 262 | 262 | ||
| 263 | /* | ||
| 264 | * Make sure crng is ready. Otherwise we get "(ptrval)" instead | ||
| 265 | * of a hashed address when printing '%p' in plain_hash() and | ||
| 266 | * plain_format(). | ||
| 267 | */ | ||
| 268 | wait_for_random_bytes(); | ||
| 269 | |||
| 270 | err = plain_hash(); | 263 | err = plain_hash(); |
| 271 | if (err) { | 264 | if (err) { |
| 272 | pr_warn("plain 'p' does not appear to be hashed\n"); | 265 | pr_warn("plain 'p' does not appear to be hashed\n"); |
