]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/qm - clear used reference count when start qp
authorShukun Tan <tanshukun1@huawei.com>
Sat, 15 Aug 2020 09:56:09 +0000 (17:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:47:51 +0000 (14:47 +1000)
commit339c864c0777913fe0ba7c5ac07f6647d8fd1d05
treed9ab556d356b99245f9713152722417a950e24af
parenta3519e805e24cc709e867a1e841842b702e344de
crypto: hisilicon/qm - clear used reference count when start qp

The used reference count is used for counting the number of 'sqe' which
is under processing. This reference count should be cleared as starting
'qp', otherwise the 'used' will be messy when allocating this 'qp' again.

Fixes: 095c7085678a("crypto: hisilicon - QM memory management...")
Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Signed-off-by: Yang Shen <shenyang39@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c