projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'ktest-v3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux...
[firefly-linux-kernel-4.4.55.git]
/
crypto
/
sha512_generic.c
diff --git
a/crypto/sha512_generic.c
b/crypto/sha512_generic.c
index 107f6f7be5e139129a1666f1f20aa3a6967c1ef0..dd30f40af9f505152bbc620211fa37d109eae1d7 100644
(file)
--- 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)
index = sctx->count[0] & 0x7f;
/* Update number of bytes */
- if (
!(sctx->count[0] += len)
)
+ if (
(sctx->count[0] += len) < len
)
sctx->count[1]++;
part_len = 128 - index;