summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2017-09-14 13:20:38 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:52 (GMT)
commitcf81c7fc3fb4a7800bcea1a662a51c324a7a9c94 (patch)
treef391bd4d91eff901960bd085a39a8101d6646281 /drivers/crypto
parent15fa42b7a3301b82b8c8688fa2f749949c754af9 (diff)
downloadlinux-cf81c7fc3fb4a7800bcea1a662a51c324a7a9c94.tar.xz
crypto: caam/qi2 - fix caam_exit_common() signature
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ă <horia.geanta@nxp.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/caamalg_qi2.c3
1 files changed, 1 insertions, 2 deletions
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++) {