提交 043f891b 编写于 作者: P Petr Mladek

Revert "lib/test_printf.c: call wait_for_random_bytes() before plain %p tests"

This reverts commit ee410f15.

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: NSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: NPetr Mladek <pmladek@suse.com>
上级 ce397d21
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册