projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a49e490
)
crypto: omap-sham - fix concurrent sha1 calculations
author
Markku Kylanpaa
<ext-markku.kylanpaa@nokia.com>
Wed, 20 Apr 2011 10:34:55 +0000
(13:34 +0300)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 26 Apr 2011 06:45:32 +0000
(16:45 +1000)
SHA1 accelerator can also be busy. Add -EBUSY status return option and
return busy status from omap_sham_finup().
Signed-off-by: Markku Kylanpaa <ext-markku.kylanpaa@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/omap-sham.c
b/drivers/crypto/omap-sham.c
index 465cde3e4f6008365b8f0370cfc532086cb6fd02..e36032bac2e5e9d17612e93e31226b12614dcd8e 100644
(file)
--- a/
drivers/crypto/omap-sham.c
+++ b/
drivers/crypto/omap-sham.c
@@
-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