]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:33:05 +0000 (13:33 +0100)
commit9808cf0034904cc0e416b9071254a776c38cfa68
tree07306d0ae8eb86a9895ce68cd5ece0b9adf94897
parent75b0dc3410a62c2ca468de791783c13d98def261
crypto: hisilicon/hpre - fix resource leak in remove process

[ Upstream commit 5de89dee11492c48264ef0bbef7d78b6c56eb49a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/hisilicon/hpre/hpre_main.c