summaryrefslogtreecommitdiff
path: root/drivers/crypto/hisilicon/sec
diff options
context:
space:
mode:
authorJianglei Nie <niejianglei2021@163.com>2022-06-30 17:31:32 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-07-08 10:21:16 +0300
commit32c0f7d4194c4352f902f07d2ab990994800596e (patch)
tree6046377dd236351358f15853a9b596fda72d3f30 /drivers/crypto/hisilicon/sec
parent8ccc9cc47c8c9e69c7bd9a7694a1d8c33108dd28 (diff)
downloadlinux-32c0f7d4194c4352f902f07d2ab990994800596e.tar.xz
crypto: hisilicon/sec - fix inconsistent argument
The argument passed to sec_queue_aw_alloc() should be SEC_QUEUE_AW_FROCE_NOALLOC instead of SEC_QUEUE_AR_FROCE_NOALLOC. Signed-off-by: Jianglei Nie <niejianglei2021@163.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/sec')
-rw-r--r--drivers/crypto/hisilicon/sec/sec_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/sec/sec_drv.c b/drivers/crypto/hisilicon/sec/sec_drv.c
index c8de1b51c843..e75851326c1e 100644
--- a/drivers/crypto/hisilicon/sec/sec_drv.c
+++ b/drivers/crypto/hisilicon/sec/sec_drv.c
@@ -892,7 +892,7 @@ bool sec_queue_can_enqueue(struct sec_queue *queue, int num)
static void sec_queue_hw_init(struct sec_queue *queue)
{
sec_queue_ar_alloc(queue, SEC_QUEUE_AR_FROCE_NOALLOC);
- sec_queue_aw_alloc(queue, SEC_QUEUE_AR_FROCE_NOALLOC);
+ sec_queue_aw_alloc(queue, SEC_QUEUE_AW_FROCE_NOALLOC);
sec_queue_ar_pkgattr(queue, 1);
sec_queue_aw_pkgattr(queue, 1);