Commit e7c4f03b authored by Linus Torvalds's avatar Linus Torvalds
parents d9244b5d d315a0e0
...@@ -82,10 +82,11 @@ int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err) ...@@ -82,10 +82,11 @@ int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err)
if (err) if (err)
return err; return err;
walk->offset = 0; if (nbytes) {
walk->offset = 0;
if (nbytes) walk->pg++;
return hash_walk_next(walk); return hash_walk_next(walk);
}
if (!walk->total) if (!walk->total)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment