Skip to content

Commit

Permalink
crypto: geode - Don't use tfm->__crt_alg->cra_name directly
Browse files Browse the repository at this point in the history
Use a standard accessor instead of directly digging into a structure.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Marek Vasut authored and Herbert Xu committed May 22, 2014
1 parent 701bcbc commit d207a38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/geode-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)

static int fallback_init_cip(struct crypto_tfm *tfm)
{
const char *name = tfm->__crt_alg->cra_name;
const char *name = crypto_tfm_alg_name(tfm);
struct geode_aes_op *op = crypto_tfm_ctx(tfm);

op->fallback.cip = crypto_alloc_cipher(name, 0,
Expand Down Expand Up @@ -365,7 +365,7 @@ geode_cbc_encrypt(struct blkcipher_desc *desc,

static int fallback_init_blk(struct crypto_tfm *tfm)
{
const char *name = tfm->__crt_alg->cra_name;
const char *name = crypto_tfm_alg_name(tfm);
struct geode_aes_op *op = crypto_tfm_ctx(tfm);

op->fallback.blk = crypto_alloc_blkcipher(name, 0,
Expand Down

0 comments on commit d207a38

Please sign in to comment.