]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: hisilicon/debugfs - fix the struct pointer incorrectly offset problem
authorChenghai Huang <huangchenghai2@huawei.com>
Sat, 30 Nov 2024 08:01:31 +0000 (16:01 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 10 Dec 2024 05:40:25 +0000 (13:40 +0800)
commitcd26cd65476711e2c69e0a049c0eeef4b743f5ac
tree85fa80feb505b3741ff7862577a56fc0e7e6e515
parent8552cb04e0831df3ff265c75ad33f705a45bc731
crypto: hisilicon/debugfs - fix the struct pointer incorrectly offset problem

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

Fixes: 15f112f9cef5 ("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>
drivers/crypto/hisilicon/debugfs.c