浏览代码

Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  crypto: sha-s390 - Reset index after processing partial block
Linus Torvalds 14 年之前
父节点
当前提交
0d6e82e7e0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/s390/crypto/sha_common.c

+ 1 - 0
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 */