Skip to content

Commit

Permalink
Merge master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6
Browse files Browse the repository at this point in the history
* master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  [CRYPTO] api: Flush the current page right than the next
  [CRYPTO] api: Use the right value when advancing scatterwalk_copychunks
  • Loading branch information
Linus Torvalds committed Mar 31, 2007
2 parents beff804 + 9f11672 commit 755948c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crypto/scatterwalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@ EXPORT_SYMBOL_GPL(scatterwalk_map);
static void scatterwalk_pagedone(struct scatter_walk *walk, int out,
unsigned int more)
{
if (out)
flush_dcache_page(scatterwalk_page(walk));
if (out) {
struct page *page;

page = walk->sg->page + ((walk->offset - 1) >> PAGE_SHIFT);
flush_dcache_page(page);
}

if (more) {
walk->offset += PAGE_SIZE - 1;
Expand Down

0 comments on commit 755948c

Please sign in to comment.