Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6

* 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

+6 -2
+6 -2
crypto/scatterwalk.c
··· 59 59 static void scatterwalk_pagedone(struct scatter_walk *walk, int out, 60 60 unsigned int more) 61 61 { 62 - if (out) 63 - flush_dcache_page(scatterwalk_page(walk)); 62 + if (out) { 63 + struct page *page; 64 + 65 + page = walk->sg->page + ((walk->offset - 1) >> PAGE_SHIFT); 66 + flush_dcache_page(page); 67 + } 64 68 65 69 if (more) { 66 70 walk->offset += PAGE_SIZE - 1;