crypto: qat - fix address leaking of RSA public exponent
authorTudor Ambarus <tudor-dan.ambarus@nxp.com>
Wed, 23 Mar 2016 15:06:40 +0000 (17:06 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 Apr 2016 12:35:52 +0000 (20:35 +0800)
Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_asym_algs.c

index 8dbbf08494366e9e7ff7ec4ac1ba56635190b1e0..05f49d4f94b2701f5a1adf9d1eb7c349a6372632 100644 (file)
@@ -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;
 }