diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-06-04 12:27:18 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-06-04 12:27:18 +0100 |
commit | 947ca2e983c7f46b49dbfb5bf51d39941d39f000 (patch) | |
tree | 4a092e425960c929444d4e93a57c577c7fdb7f8c /crypto/ahash.c | |
parent | 1946d6ef9d7bd4ba97094fe6eb68a9b877bde6b7 (diff) | |
parent | 6b4bfb87b638a4f114dfb6f72f4ac1be88a4ebe4 (diff) |
Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6
Diffstat (limited to 'crypto/ahash.c')
-rw-r--r-- | crypto/ahash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index b2d1ee32cfe..f3476374f76 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -82,10 +82,11 @@ int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err) if (err) return err; - walk->offset = 0; - - if (nbytes) + if (nbytes) { + walk->offset = 0; + walk->pg++; return hash_walk_next(walk); + } if (!walk->total) return 0; |