mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 08:00:26 +09:00
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>
This commit is contained in:
parent
abc7d0f75c
commit
6178e95978
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user