Skip to content

Commit d788fec

Browse files
Borislav Petkovherbertx
authored andcommitted
crypto, xor: Sanitize checksumming function selection output
Currently, it says [ 1.015541] xor: automatically using best checksumming function: generic_sse [ 1.040769] generic_sse: 6679.000 MB/sec [ 1.045377] xor: using function: generic_sse (6679.000 MB/sec) and repeats the function name three times unnecessarily. Change it into [ 1.015115] xor: automatically using best checksumming function: [ 1.040794] generic_sse: 6680.000 MB/sec and save us a line in dmesg. No functional change. Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent a0ea0f6 commit d788fec

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎crypto/xor.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ calibrate_xor_blocks(void)
129129

130130
if (fastest) {
131131
printk(KERN_INFO "xor: automatically using best "
132-
"checksumming function: %s\n",
133-
fastest->name);
132+
"checksumming function:\n");
134133
xor_speed(fastest);
134+
goto out;
135135
} else {
136136
printk(KERN_INFO "xor: measuring software checksum speed\n");
137137
XOR_TRY_TEMPLATES;
@@ -146,6 +146,7 @@ calibrate_xor_blocks(void)
146146

147147
#undef xor_speed
148148

149+
out:
149150
free_pages((unsigned long)b1, 2);
150151

151152
active_template = fastest;

0 commit comments

Comments
 (0)