crypto: skcipher - Fix driver name helper
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 1 Feb 2016 13:36:51 +0000 (21:36 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Feb 2016 07:33:13 +0000 (15:33 +0800)
The helper crypto_skcipher_driver_name was returning the alg
name and not the driver name.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/skcipher.h

index 5bb70565b13a3377361f154b4603607b7963efaf..905490c1da89b30ab1cf05b7a4aeaf1962e4e6ce 100644 (file)
@@ -234,7 +234,7 @@ static inline int crypto_has_skcipher(const char *alg_name, u32 type,
 static inline const char *crypto_skcipher_driver_name(
        struct crypto_skcipher *tfm)
 {
-       return crypto_tfm_alg_name(crypto_skcipher_tfm(tfm));
+       return crypto_tfm_alg_driver_name(crypto_skcipher_tfm(tfm));
 }
 
 /**