diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-05-02 11:20:03 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-05-02 11:21:21 -0400 |
commit | 87c35c56f4beed9e43bd41427643215655a31c3d (patch) | |
tree | a4a29370bbb16ecf1864751def0a9b7ad0629476 /crypto | |
parent | d1ef5bd711b6b01e6a73cf186245d19939882706 (diff) | |
parent | ee9581d7adaeb2d04b01e3567e2355ceb5f43ad1 (diff) |
Merge branch 'ux500-u9540-for-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/newsoc
From: Linus Walleij <linus.walleij@linaro.org>:
Core support for the U9540 after finalized review
* 'ux500-u9540-for-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: (2 commits)
ARM: ux500: ioremap differences for DB9540
ARM: ux500: core U9540 support
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
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; |