diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-20 14:14:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-20 14:14:58 -0400 |
commit | 277b5fb35b770792f89fbe50df03daddb3fa9521 (patch) | |
tree | 1b5558cff414274bbc07d1df6ca7cd743df20c4c /crypto | |
parent | a54769c505db4bdf01d19dca64d15cb303503d71 (diff) | |
parent | 511d63cb19329235bc9298b64010ec494b5e1408 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu:
- Locking fix for talitos driver
- Fix 64-bit counter overflow in SHA-512
- Build fix for ixp4xx.
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: talitos - properly lock access to global talitos registers
crypto: ixp4xx - include fix
crypto: sha512 - Fix byte counter overflow in SHA-512
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/sha512_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha512_generic.c b/crypto/sha512_generic.c index 107f6f7be5e1..dd30f40af9f5 100644 --- a/crypto/sha512_generic.c +++ b/crypto/sha512_generic.c | |||
@@ -174,7 +174,7 @@ sha512_update(struct shash_desc *desc, const u8 *data, unsigned int len) | |||
174 | index = sctx->count[0] & 0x7f; | 174 | index = sctx->count[0] & 0x7f; |
175 | 175 | ||
176 | /* Update number of bytes */ | 176 | /* Update number of bytes */ |
177 | if (!(sctx->count[0] += len)) | 177 | if ((sctx->count[0] += len) < len) |
178 | sctx->count[1]++; | 178 | sctx->count[1]++; |
179 | 179 | ||
180 | part_len = 128 - index; | 180 | part_len = 128 - index; |