Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marek Vasut and committed by
Herbert Xu
d207a38c 701bcbc1

+2 -2
+2 -2
drivers/crypto/geode-aes.c
··· 255 255 256 256 static int fallback_init_cip(struct crypto_tfm *tfm) 257 257 { 258 - const char *name = tfm->__crt_alg->cra_name; 258 + const char *name = crypto_tfm_alg_name(tfm); 259 259 struct geode_aes_op *op = crypto_tfm_ctx(tfm); 260 260 261 261 op->fallback.cip = crypto_alloc_cipher(name, 0, ··· 365 365 366 366 static int fallback_init_blk(struct crypto_tfm *tfm) 367 367 { 368 - const char *name = tfm->__crt_alg->cra_name; 368 + const char *name = crypto_tfm_alg_name(tfm); 369 369 struct geode_aes_op *op = crypto_tfm_ctx(tfm); 370 370 371 371 op->fallback.blk = crypto_alloc_blkcipher(name, 0,