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
|
@ -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