diff options
author | James Morris <jmorris@namei.org> | 2009-06-08 19:27:53 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-06-08 19:27:53 -0400 |
commit | 0b4ec6e4e01d98e55ae325a41304cccd87fa4c0f (patch) | |
tree | 1e075fdf4aaf0c5c003564b3f3414bb4a92ef2ed /crypto | |
parent | 04288f42033607099cebf5ca15ce8dcec3a9688b (diff) | |
parent | 3af968e066d593bc4dacc021715f3e95ddf0996f (diff) |
Merge branch 'master' into next
Diffstat (limited to 'crypto')
-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 b2d1ee32cfe8..f3476374f764 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) | |||
82 | if (err) | 82 | if (err) |
83 | return err; | 83 | return err; |
84 | 84 | ||
85 | walk->offset = 0; | 85 | if (nbytes) { |
86 | 86 | walk->offset = 0; | |
87 | if (nbytes) | 87 | walk->pg++; |
88 | return hash_walk_next(walk); | 88 | return hash_walk_next(walk); |
89 | } | ||
89 | 90 | ||
90 | if (!walk->total) | 91 | if (!walk->total) |
91 | return 0; | 92 | return 0; |