summaryrefslogtreecommitdiff
path: root/drivers/crypto/qce/skcipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/qce/skcipher.c')
-rw-r--r--drivers/crypto/qce/skcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qce/skcipher.c b/drivers/crypto/qce/skcipher.c
index 8ff10928f581..3d27cd5210ef 100644
--- a/drivers/crypto/qce/skcipher.c
+++ b/drivers/crypto/qce/skcipher.c
@@ -484,8 +484,8 @@ static int qce_skcipher_register_one(const struct qce_skcipher_def *def,
ret = crypto_register_skcipher(alg);
if (ret) {
- kfree(tmpl);
dev_err(qce->dev, "%s registration failed\n", alg->base.cra_name);
+ kfree(tmpl);
return ret;
}