diff options
author | Alex Shi <alex.shi@linaro.org> | 2016-05-24 12:18:16 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-05-24 12:18:16 +0800 |
commit | 1d48c75353cb265710f7589f47532e1db06cb64f (patch) | |
tree | ebfded7d10d45cfb718c76159de227b593716d5c /crypto/ahash.c | |
parent | 71d97a95427b3c9c11788a8e6dd0117551d29166 (diff) | |
parent | 0a296a966f183e4ef1fcb37940940e8df8c4f258 (diff) |
Merge branch 'linux-linaro-lsk-v4.1' into linux-linaro-lsk-v4.1-androidlsk-v4.1-16.05-android
Diffstat (limited to 'crypto/ahash.c')
-rw-r--r-- | crypto/ahash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index d19b52324cf5..dac1c24e9c3e 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -69,8 +69,9 @@ static int hash_walk_new_entry(struct crypto_hash_walk *walk) struct scatterlist *sg; sg = walk->sg; - walk->pg = sg_page(sg); walk->offset = sg->offset; + walk->pg = sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); + walk->offset = offset_in_page(walk->offset); walk->entrylen = sg->length; if (walk->entrylen > walk->total) |