X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=arch%2Fs390%2Fcrypto%2Fsha_common.c;h=48884f89ab92b13380a0cfdfa65b9b40e326490a;hb=638691a7a46a4ae9a7b56c603299e42d7f6e722e;hp=f42dbabc0d30883256bb786ae742e37dafd6d2a5;hpb=7bd9db83087aecef8279c0b8b9dfef4db4a8fc3c;p=mv-sheeva.git diff --git a/arch/s390/crypto/sha_common.c b/arch/s390/crypto/sha_common.c index f42dbabc0d3..48884f89ab9 100644 --- a/arch/s390/crypto/sha_common.c +++ b/arch/s390/crypto/sha_common.c @@ -38,6 +38,7 @@ int s390_sha_update(struct shash_desc *desc, const u8 *data, unsigned int len) BUG_ON(ret != bsize); data += bsize - index; len -= bsize - index; + index = 0; } /* process as many blocks as possible */