crypto: hisilicon/debugfs - Resolve the problem of applying for redundant space in...
authorChenghai Huang <huangchenghai2@huawei.com>
Sun, 7 Apr 2024 07:59:59 +0000 (15:59 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Apr 2024 07:07:53 +0000 (15:07 +0800)
commit745a11899a8c1e8c6213ec054585a556ad11fdb6
treef49d13a22cb17af8acd156320ddc15ad39ccb81b
parentbba4250757b4ae1680fea435a358d8093f254094
crypto: hisilicon/debugfs - Resolve the problem of applying for redundant space in sq dump

When dumping SQ, only the corresponding ID's SQE needs to be
dumped, and there is no need to apply for the entire SQE
memory. This is because excessive dump operations can lead to
memory resource waste.

Therefor apply for the space corresponding to sqe_id separately
to avoid space waste.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/debugfs.c