crypto, xor: Sanitize checksumming function selection output
[linux-2.6-block.git] / crypto / xor.c
index b75182d8ab1460b141619cc63af15d03fe6b2475..664b6dfa9e2c1ef492cc5ab96d7c704e25ad471a 100644 (file)
@@ -129,9 +129,9 @@ calibrate_xor_blocks(void)
 
        if (fastest) {
                printk(KERN_INFO "xor: automatically using best "
-                       "checksumming function: %s\n",
-                       fastest->name);
+                                "checksumming function:\n");
                xor_speed(fastest);
+               goto out;
        } else {
                printk(KERN_INFO "xor: measuring software checksum speed\n");
                XOR_TRY_TEMPLATES;
@@ -146,6 +146,7 @@ calibrate_xor_blocks(void)
 
 #undef xor_speed
 
+ out:
        free_pages((unsigned long)b1, 2);
 
        active_template = fastest;