crypto/caam_jr: fix incorrect check
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")
Signed-off-by Gagandeep Singh <[email protected]>
---
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
@@ -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
Quoted 9 lines · Gagandeep Singh
Check should be on parameter
uio_fdinstead of
local variablejob_ringFixes e7a45f3cc2 ("crypto/caam_jr: add UIO specific operations")Signed-off-by Gagandeep Singh <[email protected]>---
changes:
* fixed incorrect check infree_job_ring(comment by Ferruh)
You should add Reported-by
Will add it while merging.
Acked-by Akhil Goyal <[email protected]>
Akhil Goyal
AppliedQuoted 7 lines · Akhil Goyal
Quoted 5 lines · Gagandeep Singh
Check should be on parameter
uio_fdinstead of
local variablejob_ringFixes e7a45f3cc2 ("crypto/caam_jr: add UIO specific operations")
Quoted 8 lines
Quoted 4 lines
Signed-off-by Gagandeep Singh <[email protected]>---
changes:
* fixed incorrect check infree_job_ring(comment by Ferruh)You should add Reported-by
Will add it while merging.Acked-by Akhil Goyal <[email protected]>
Applied to dpdk-next-crypto
Thanks