Skip to content

Commit d207a38

Browse files
Marek Vasutherbertx
authored andcommitted
crypto: geode - Don't use tfm->__crt_alg->cra_name directly
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>
1 parent 701bcbc commit d207a38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/crypto/geode-aes.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
255255

256256
static int fallback_init_cip(struct crypto_tfm *tfm)
257257
{
258-
const char *name = tfm->__crt_alg->cra_name;
258+
const char *name = crypto_tfm_alg_name(tfm);
259259
struct geode_aes_op *op = crypto_tfm_ctx(tfm);
260260

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

366366
static int fallback_init_blk(struct crypto_tfm *tfm)
367367
{
368-
const char *name = tfm->__crt_alg->cra_name;
368+
const char *name = crypto_tfm_alg_name(tfm);
369369
struct geode_aes_op *op = crypto_tfm_ctx(tfm);
370370

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

0 commit comments

Comments
 (0)