crypto/caam_jr: fix check before job ring freeing
authorGagandeep Singh <g.singh@nxp.com>
Mon, 29 Oct 2018 12:15:51 +0000 (12:15 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 2 Nov 2018 11:26:06 +0000 (12:26 +0100)
commitfeb441cd22514717d96c23fe38410a965d0d599c
tree0bc1b9d00d42b09e710acac82fd630eafd3d0ffe
parent30fadd8bc9d4b550f854a5c76ee62bf02fea8b3e
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>
drivers/crypto/caam_jr/caam_jr_uio.c