summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorAneesh Bansal <aneesh.bansal@nxp.com>2016-02-11 14:36:51 +0530
committerYork Sun <york.sun@nxp.com>2016-03-21 12:42:11 -0700
commit6178e9597806033529fdd52c1678f3a7c92510d5 (patch)
tree135f50b9a56ea4181c32d7ae6228d1e372d8f410 /drivers/crypto
parentabc7d0f75c078524f713cb2d4b4efe1b1a122c60 (diff)
drivers/crypto/fsl: correct error checking in run_descriptor
When CAAM runs a descriptor and an error occurs, a non-zero value is set in Output Status Register. The if condition should check the status for a non-zero value. Signed-off-by: Aneesh Bansal <aneesh.bansal@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/fsl/jr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c
index b766470ce2..93c24712d1 100644
--- a/drivers/crypto/fsl/jr.c
+++ b/drivers/crypto/fsl/jr.c
@@ -360,7 +360,7 @@ int run_descriptor_jr(uint32_t *desc)
}
}
- if (!op.status) {
+ if (op.status) {
debug("Error %x\n", op.status);
ret = op.status;
}