OpenCloudOS-Kernel/drivers/crypto/hisilicon
Chenghai Huang 7fc8d9a525 crypto: hisilicon/debugfs - Fix debugfs uninit process issue
[ Upstream commit 8be0913389718e8d27c4f1d4537b5e1b99ed7739 ]

During the zip probe process, the debugfs failure does not stop
the probe. When debugfs initialization fails, jumping to the
error branch will also release regs, in addition to its own
rollback operation.

As a result, it may be released repeatedly during the regs
uninit process. Therefore, the null check needs to be added to
the regs uninit process.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-11 12:49:02 +02:00
..
hpre crypto: hisilicon/hpre - save capability registers in probe process 2024-01-25 15:35:17 -08:00
sec crypto: hisilicon/sec - Do not check for 0 return after calling platform_get_irq() 2023-08-11 19:19:27 +08:00
sec2 crypto: hisilicon/sec - Fix memory leak for sec resource release 2024-06-27 13:49:00 +02:00
trng hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c 2023-05-12 18:48:01 +08:00
zip crypto: hisilicon/zip - save capability registers in probe process 2024-01-25 15:35:17 -08:00
Kconfig hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c 2023-05-12 18:48:01 +08:00
Makefile hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c 2023-05-12 18:48:01 +08:00
debugfs.c crypto: hisilicon/debugfs - Fix debugfs uninit process issue 2024-07-11 12:49:02 +02:00
qm.c crypto: hisilicon/qm - Add the err memory release process to qm uninit 2024-06-27 13:49:00 +02:00
qm_common.h crypto: hisilicon/qm - fix PF queue parameter issue 2023-11-20 11:59:20 +01:00
sgl.c mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00