Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[linux-2.6-microblaze.git] / lib / test_printf.c
index cea592f..b2aa8f5 100644 (file)
@@ -260,6 +260,13 @@ 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");