Skip to content
Snippets Groups Projects
Commit 6178e959 authored by Aneesh Bansal's avatar Aneesh Bansal Committed by York Sun
Browse files

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: default avatarAneesh Bansal <aneesh.bansal@nxp.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent abc7d0f7
No related branches found
No related tags found
No related merge requests found
...@@ -360,7 +360,7 @@ int run_descriptor_jr(uint32_t *desc) ...@@ -360,7 +360,7 @@ int run_descriptor_jr(uint32_t *desc)
} }
} }
if (!op.status) { if (op.status) {
debug("Error %x\n", op.status); debug("Error %x\n", op.status);
ret = op.status; ret = op.status;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment