crypto: hisilicon/hpre - fix resource leak in remove process
authorZhiqi Song <songzhiqi1@huawei.com>
Sat, 24 Sep 2022 07:38:31 +0000 (15:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2022 11:05:23 +0000 (19:05 +0800)
commit45e6319bd5f2154d8b8c9f1eaa4ac030ba0d330c
tree50851e55193b78e72a9ec9885d14897097a5d484
parent9f6035af06b526e678808d492fc0830aef6cfbd8
crypto: hisilicon/hpre - fix resource leak in remove process

In hpre_remove(), when the disable operation of qm sriov failed,
the following logic should continue to be executed to release the
remaining resources that have been allocated, instead of returning
directly, otherwise there will be resource leakage.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_main.c