Message ID | 1455016895-22090-1-git-send-email-salvatore.benedetto@intel.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Herbert Xu |
Headers | show |
On Tue, Feb 09, 2016 at 11:21:35AM +0000, Salvatore Benedetto wrote:
> Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com>
We already use kzfree on the tfm, so we can get rid of all these
manual zeroing.
Thanks,
diff --git a/drivers/crypto/qat/qat_common/qat_asym_algs.c b/drivers/crypto/qat/qat_common/qat_asym_algs.c index 51c594f..54e386e 100644 --- a/drivers/crypto/qat/qat_common/qat_asym_algs.c +++ b/drivers/crypto/qat/qat_common/qat_asym_algs.c @@ -709,7 +709,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; }
Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com> --- drivers/crypto/qat/qat_common/qat_asym_algs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)