From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gagandeep Singh Subject: [PATCH] crypto/caam_jr: fix incorrect check Date: Mon, 29 Oct 2018 12:15:51 +0000 Message-ID: <20181029121511.7433-1-g.singh@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Gagandeep Singh To: "dev@dpdk.org" Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0072.outbound.protection.outlook.com [104.47.0.72]) by dpdk.org (Postfix) with ESMTP id C2FC91E2F for ; Mon, 29 Oct 2018 13:15:56 +0100 (CET) Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Check should be on parameter uio_fd instead of local variable job_ring Fixes: e7a45f3cc2 ("crypto/caam_jr: add UIO specific operations") Signed-off-by: Gagandeep Singh --- changes: * fixed incorrect check in free_job_ring (comment by Ferruh) drivers/crypto/caam_jr/caam_jr_uio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/caam_jr/caam_jr_uio.c b/drivers/crypto/caam_jr/= caam_jr_uio.c index c07d9db01..d94101c2f 100644 --- a/drivers/crypto/caam_jr/caam_jr_uio.c +++ b/drivers/crypto/caam_jr/caam_jr_uio.c @@ -332,7 +332,7 @@ free_job_ring(uint32_t uio_fd) struct uio_job_ring *job_ring =3D NULL; int i; =20 - if (!job_ring->uio_fd) + if (!uio_fd) return; =20 for (i =3D 0; i < MAX_SEC_JOB_RINGS; i++) { --=20 2.17.1