File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ static int hash_walk_new_entry(struct crypto_hash_walk *walk)
80
80
81
81
sg = walk -> sg ;
82
82
walk -> offset = sg -> offset ;
83
- walk -> pg = sg_page (walk -> sg ) + (walk -> offset >> PAGE_SHIFT );
83
+ walk -> pg = nth_page ( sg_page (walk -> sg ), (walk -> offset >> PAGE_SHIFT ) );
84
84
walk -> offset = offset_in_page (walk -> offset );
85
85
walk -> entrylen = sg -> length ;
86
86
@@ -221,7 +221,7 @@ int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc)
221
221
if (!IS_ENABLED (CONFIG_HIGHMEM ))
222
222
return crypto_shash_digest (desc , data , nbytes , req -> result );
223
223
224
- page += offset >> PAGE_SHIFT ;
224
+ page = nth_page ( page , offset >> PAGE_SHIFT ) ;
225
225
offset = offset_in_page (offset );
226
226
227
227
if (nbytes > (unsigned int )PAGE_SIZE - offset )
You can’t perform that action at this time.
0 commit comments