X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=crypto%2Fecb.c;h=839a0aed8c229c26631ff56032165a19295a0531;hb=c3c70c443c2ef1fce31f201a93780c884b903993;hp=f239aa9c4017834a7a193530386f0dc924a3fcbf;hpb=2dc94310bd94d0906febea7d0f7c188da620c952;p=powerpc.git diff --git a/crypto/ecb.c b/crypto/ecb.c index f239aa9c40..839a0aed8c 100644 --- a/crypto/ecb.c +++ b/crypto/ecb.c @@ -99,12 +99,13 @@ static int crypto_ecb_init_tfm(struct crypto_tfm *tfm) struct crypto_instance *inst = (void *)tfm->__crt_alg; struct crypto_spawn *spawn = crypto_instance_ctx(inst); struct crypto_ecb_ctx *ctx = crypto_tfm_ctx(tfm); + struct crypto_cipher *cipher; - tfm = crypto_spawn_tfm(spawn); - if (IS_ERR(tfm)) - return PTR_ERR(tfm); + cipher = crypto_spawn_cipher(spawn); + if (IS_ERR(cipher)) + return PTR_ERR(cipher); - ctx->child = crypto_cipher_cast(tfm); + ctx->child = cipher; return 0; }