]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
crypto: padlock - tfm->__crt_alg->cra_name directly
authorMarek Vasut <marex@denx.de>
Wed, 14 May 2014 09:41:02 +0000 (11:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 May 2014 13:03:16 +0000 (21:03 +0800)
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/padlock-sha.c

index 9266c0e2549297cfd403b85556ac86ae728f6f77..bace885634f244b405113477010f2719351e997d 100644 (file)
@@ -211,7 +211,7 @@ static int padlock_sha256_final(struct shash_desc *desc, u8 *out)
 static int padlock_cra_init(struct crypto_tfm *tfm)
 {
        struct crypto_shash *hash = __crypto_shash_cast(tfm);
-       const char *fallback_driver_name = tfm->__crt_alg->cra_name;
+       const char *fallback_driver_name = crypto_tfm_alg_name(tfm);
        struct padlock_sha_ctx *ctx = crypto_tfm_ctx(tfm);
        struct crypto_shash *fallback_tfm;
        int err = -ENOMEM;