Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
caam_keyblob: Fix the caam_jr_enqueue() return value check
Since commit 4d370a103695 ("crypto: caam - change return code in caam_jr_enqueue function") the caam_jr_enqueue() does not return 0 on success anymore. The new return value when caam_jr_enqueue() succeeds is -EINPROGRESS. Check for both the old and the new return values so that caam_keyblob can work with old and new kernels. Tested on a imx7s-warp board running 5.10.76. A big thanks to Jó Ágila Bitsch for pointing out the caam_jr_enqueue() return value change. Signed-off-by: Fabio Estevam <[email protected]>
- Loading branch information