]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: hisilicon/qm - fix incorrect parameters usage
authorWeili Qian <qianweili@huawei.com>
Sat, 24 Sep 2022 10:14:42 +0000 (18:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:29 +0000 (13:32 +0100)
commit9a6fab168cbce7350f32548e4b9616985070d09d
treea024e92c6d3f94f6dcb35799bef2f81f9184a628
parentf024bf13d4ff0a31549aa2d41a3f71098c7ebfaf
crypto: hisilicon/qm - fix incorrect parameters usage

[ Upstream commit f57e292897cac13b6ddee078aea21173b234ecb7 ]

In qm_get_xqc_depth(), parameters low_bits and high_bits save
the values of the corresponding bits. However, the values saved by the
two parameters are opposite. As a result, the values returned to the
callers are incorrect.

Fixes: 129a9f340172 ("crypto: hisilicon/qm - get qp num and depth from hardware registers")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/hisilicon/qm.c