[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1604653287-16577-1-git-send-email-wangqing@vivo.com>
Date: Fri, 6 Nov 2020 17:01:27 +0800
From: Wang Qing <wangqing@...o.com>
To: Horia Geantă <horia.geanta@....com>,
Aymen Sghaier <aymen.sghaier@....com>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Wang Qing <wangqing@...o.com>
Subject: [PATCH] crypto: Fix return value check in aead_crypt()
Fix passing zero to 'PTR_ERR' warning
Signed-off-by: Wang Qing <wangqing@...o.com>
---
drivers/crypto/caam/caamalg_qi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/caam/caamalg_qi.c b/drivers/crypto/caam/caamalg_qi.c
index 66f60d7..add60e8
--- a/drivers/crypto/caam/caamalg_qi.c
+++ b/drivers/crypto/caam/caamalg_qi.c
@@ -1166,7 +1166,7 @@ static inline int aead_crypt(struct aead_request *req, bool encrypt)
/* allocate extended descriptor */
edesc = aead_edesc_alloc(req, encrypt);
if (IS_ERR_OR_NULL(edesc))
- return PTR_ERR(edesc);
+ return PTR_ERR_OR_ZERO(edesc);
/* Create and submit job descriptor */
ret = caam_qi_enqueue(ctx->qidev, &edesc->drv_req);
--
2.7.4
Powered by blists - more mailing lists