[RFC/Patch] fix typo on algorithm comparison

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The compare code which looks for identical driver compares "driver name"
with "algorithm name" instead of "driver name" with "driver name".

Signed-off-by: Sebastian Siewior <sebastian@xxxxxxxxxxxxx>
--- 

Herbert, it looks like a typo to me. I'm not sure.

--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -153,7 +153,7 @@ static int __crypto_register_alg(struct 
 			struct crypto_larval *larval = (void *)q;
 
 			if (strcmp(alg->cra_name, q->cra_name) &&
-			    strcmp(alg->cra_driver_name, q->cra_name))
+			    strcmp(alg->cra_driver_name, q->cra_driver_name))
 				continue;
 
 			if (larval->adult)
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux