1
0
Fork 0

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>
utp
Aneesh Bansal 2016-02-11 14:36:51 +05:30 committed by York Sun
parent abc7d0f75c
commit 6178e95978
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}