From: Tudor Ambarus Date: Wed, 23 Mar 2016 15:06:40 +0000 (+0200) Subject: crypto: qat - fix address leaking of RSA public exponent X-Git-Tag: v4.7-rc2~25^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=738f98233b94db55607f97a76f9699efc4217276;p=platform%2Fkernel%2Flinux-exynos.git crypto: qat - fix address leaking of RSA public exponent Signed-off-by: Tudor Ambarus Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/qat/qat_common/qat_asym_algs.c b/drivers/crypto/qat/qat_common/qat_asym_algs.c index 8dbbf084..05f49d4 100644 --- a/drivers/crypto/qat/qat_common/qat_asym_algs.c +++ b/drivers/crypto/qat/qat_common/qat_asym_algs.c @@ -711,7 +711,7 @@ static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) } qat_crypto_put_instance(ctx->inst); ctx->n = NULL; - ctx->d = NULL; + ctx->e = NULL; ctx->d = NULL; }