crypto: hisilicon/qm - Add the err memory release process to qm uninit
authorChenghai Huang <huangchenghai2@huawei.com>
Sun, 7 Apr 2024 08:00:00 +0000 (16:00 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Apr 2024 07:07:53 +0000 (15:07 +0800)
commitc9ccfd5e0ff0dd929ce86d1b5f3c6a414110947a
tree66698b50b31765ff31e04dfbc828fc21786748ab
parent745a11899a8c1e8c6213ec054585a556ad11fdb6
crypto: hisilicon/qm - Add the err memory release process to qm uninit

When the qm uninit command is executed, the err data needs to
be released to prevent memory leakage. The error information
release operation and uacce_remove are integrated in
qm_remove_uacce.

So add the qm_remove_uacce to qm uninit to avoid err memory
leakage.

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