Browse Source

crypto: qat - fix address leaking of RSA public exponent

Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tudor Ambarus 9 years ago
parent
commit
738f98233b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/crypto/qat/qat_common/qat_asym_algs.c

+ 1 - 1
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);
 	qat_crypto_put_instance(ctx->inst);
 	ctx->n = NULL;
 	ctx->n = NULL;
-	ctx->d = NULL;
+	ctx->e = NULL;
 	ctx->d = NULL;
 	ctx->d = NULL;
 }
 }