mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
crypto: omap-sham - fix concurrent sha1 calculations
SHA1 accelerator can also be busy. Add -EBUSY status return option and return busy status from omap_sham_finup(). Signed-off-by: Markku Kylanpaa <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
a49e490c7a
commit
455e33898e
1 changed files with 1 additions and 1 deletions
|
|
@ -835,7 +835,7 @@ static int omap_sham_finup(struct ahash_request *req)
|
|||
ctx->flags |= FLAGS_FINUP;
|
||||
|
||||
err1 = omap_sham_update(req);
|
||||
if (err1 == -EINPROGRESS)
|
||||
if (err1 == -EINPROGRESS || err1 == -EBUSY)
|
||||
return err1;
|
||||
/*
|
||||
* final() has to be always called to cleanup resources
|
||||
|
|
|
|||
Loading…
Reference in a new issue