]> git.dujemihanovic.xyz Git - linux.git/commit
crypto: hisilicon/sec - Fix memory leak for sec resource release
authorChenghai Huang <huangchenghai2@huawei.com>
Sun, 7 Apr 2024 07:59:58 +0000 (15:59 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Apr 2024 07:07:53 +0000 (15:07 +0800)
commitbba4250757b4ae1680fea435a358d8093f254094
tree556bc57cd2f2c97a5a22426c7931b055bd9e9dd9
parent0a6e038f0c4d9a5d5f638757fa03ef6ffc550b6a
crypto: hisilicon/sec - Fix memory leak for sec resource release

The AIV is one of the SEC resources. When releasing resources,
it need to release the AIV resources at the same time.
Otherwise, memory leakage occurs.

The aiv resource release is added to the sec resource release
function.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c