From cf81c7fc3fb4a7800bcea1a662a51c324a7a9c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Horia=20Geant=C4=83?= Date: Thu, 14 Sep 2017 16:20:38 +0300 Subject: crypto: caam/qi2 - fix caam_exit_common() signature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix caam_exit_common function signature - it gets a pointer to a caam_ctx struct, not to a tfm. Fixes: 6220d7624b1d ("crypto: caam/qi2 - add DPAA2-CAAM driver") Signed-off-by: Horia Geantă diff --git a/drivers/crypto/caam/caamalg_qi2.c b/drivers/crypto/caam/caamalg_qi2.c index da3e68b..c9e8707 100644 --- a/drivers/crypto/caam/caamalg_qi2.c +++ b/drivers/crypto/caam/caamalg_qi2.c @@ -2279,9 +2279,8 @@ static int caam_cra_init_aead(struct crypto_aead *tfm) return caam_cra_init(crypto_aead_tfm(tfm)); } -static void caam_exit_common(struct crypto_tfm *tfm) +static void caam_exit_common(struct caam_ctx *ctx) { - struct caam_ctx *ctx = crypto_tfm_ctx(tfm); int i; for (i = 0; i < NUM_OP; i++) { -- cgit v0.10.2