Skip to contentSkip to conversation

crypto/caam_jr: fix incorrect check

PATCH Applied Gagandeep Singh 2 participants 3 messages Oct 29, 2018 – Nov 2, 2018 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/caam_jr: fix incorrect check

Check should be on parameter uio_fd instead of
local variable job_ring

Fixes e7a45f3cc2 ("crypto/caam_jr: add UIO specific operations")

---
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(-)
drivers/crypto/caam_jr/caam_jr_uio.c +1 -1
index c07d9db01..d94101c2f 100644
@@ -332,7 +332,7 @@ free_job_ring(uint32_t uio_fd)
 	struct uio_job_ring *job_ring = NULL;
 	int i;
 
-	if (!job_ring->uio_fd)
+	if (!uio_fd)
 		return;
 
 	for (i = 0; i < MAX_SEC_JOB_RINGS; i++) {
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Gagandeep Singh

Check should be on parameter uio_fd instead of
local variable job_ring

Fixes e7a45f3cc2 ("crypto/caam_jr: add UIO specific operations")

---
changes:
* fixed incorrect check in free_job_ring (comment by Ferruh)

You should add Reported-by
Will add it while merging.

Applied
#2 lore raw
Quoted 7 lines · Akhil Goyal
Quoted 5 lines · Gagandeep Singh

Check should be on parameter uio_fd instead of
local variable job_ring

Fixes e7a45f3cc2 ("crypto/caam_jr: add UIO specific operations")
Quoted 8 lines
Quoted 4 lines

---
changes:
* fixed incorrect check in free_job_ring (comment by Ferruh)

You should add Reported-by
Will add it while merging.

Applied to dpdk-next-crypto

Thanks