mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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: hash - Fix handling of sg entry that crosses page boundary
This commit is contained in:
commit
e7c4f03b83
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue