crypto: hisilicon/sec - fix inconsistent argument
authorJianglei Nie <niejianglei2021@163.com>
Thu, 30 Jun 2022 14:31:32 +0000 (22:31 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Jul 2022 07:21:16 +0000 (15:21 +0800)
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>
drivers/crypto/hisilicon/sec/sec_drv.c

index c8de1b51c843068fba4fcc0d0aadc4a075f490a0..e75851326c1e0485f5eef008ccd0815d89db750c 100644 (file)
@@ -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);