crypto/caam_jr: fix check before job ring freeing
Check should be on parameter uio_fd instead of local variable job_ring Fixes: e7a45f3cc2 ("crypto/caam_jr: add UIO specific operations") Reported-by: Ferruh Yigit <ferruh.yigit@intel.com> Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
This commit is contained in:
parent
30fadd8bc9
commit
feb441cd22
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user