linux/drivers/crypto/hisilicon
Chenghai Huang 71c359f6a4 crypto: hisilicon/debugfs - fix the struct pointer incorrectly offset problem
commit cd26cd6547 upstream.

Offset based on (id * size) is wrong for sqc and cqc.
(*sqc/*cqc + 1) can already offset sizeof(struct(Xqc)) length.

Fixes: 15f112f9ce ("crypto: hisilicon/debugfs - mask the unnecessary info from the dump")
Cc: <stable@vger.kernel.org>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-12-19 18:13:02 +01:00
..
hpre crypto: hisilicon/qm - disable same error report before resetting 2024-12-05 14:01:18 +01:00
sec crypto: hisilicon/sec - Remove trailing space after \n newline 2024-09-06 14:50:46 +08:00
sec2 crypto: hisilicon/qm - disable same error report before resetting 2024-12-05 14:01:18 +01:00
trng crypto: hisilicon/trng - modifying the order of header files 2024-09-06 14:50:46 +08:00
zip crypto: hisilicon/qm - disable same error report before resetting 2024-12-05 14:01:18 +01:00
debugfs.c crypto: hisilicon/debugfs - fix the struct pointer incorrectly offset problem 2024-12-19 18:13:02 +01: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
qm.c crypto: hisilicon/qm - disable same error report before resetting 2024-12-05 14:01:18 +01:00
qm_common.h crypto: hisilicon/qm - simplify the status of qm 2023-12-01 18:03:26 +08:00
sgl.c crypto: hisilicon - fix missed error branch 2024-09-06 14:50:46 +08:00