From: Zhang Wei zhangwei375@huawei.com
driver inclusion category: bugfix bugzilla: NA CVE: NA
Feature or Bugfix:Bugfix
Signed-off-by: Zhang Wei zhangwei375@huawei.com Reviewed-by: liujunxian liujunxian3@huawei.com Reviewed-by: wangyuan wangyuan46@huawei.com Reviewed-by: hucheng hucheng.hu@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c index 4467dd277985..4164c05f2d18 100644 --- a/drivers/crypto/hisilicon/sec2/sec_crypto.c +++ b/drivers/crypto/hisilicon/sec2/sec_crypto.c @@ -529,6 +529,7 @@ static void hisi_sec_cipher_ctx_exit(struct crypto_skcipher *tfm) hrtimer_cancel(&ctx->timer);
if (c_ctx->c_key) { + memzero_explicit(c_ctx->c_key, SEC_MAX_KEY_SIZE); dma_free_coherent(ctx->dev, SEC_MAX_KEY_SIZE, c_ctx->c_key, c_ctx->c_key_dma); c_ctx->c_key = NULL;