Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=beff804d8dd360ccb4dd0096c9fd77a93fe9049e Commit: beff804d8dd360ccb4dd0096c9fd77a93fe9049e Parent: c35e584c087381aaa5f1ed40a28b978535c18fb2 Author: Herbert Xu <[EMAIL PROTECTED]> AuthorDate: Sat Mar 31 12:14:37 2007 +1000 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Fri Mar 30 19:26:33 2007 -0700
[PATCH] crypto api: Use the right value when advancing scatterwalk_copychunks In the scatterwalk_copychunks loop, We should be advancing by len_this_page and not nbytes. The latter is the total length. Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- crypto/scatterwalk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/crypto/scatterwalk.c b/crypto/scatterwalk.c index a664231..0f76175 100644 --- a/crypto/scatterwalk.c +++ b/crypto/scatterwalk.c @@ -91,7 +91,7 @@ void scatterwalk_copychunks(void *buf, struct scatter_walk *walk, memcpy_dir(buf, vaddr, len_this_page, out); scatterwalk_unmap(vaddr, out); - scatterwalk_advance(walk, nbytes); + scatterwalk_advance(walk, len_this_page); if (nbytes == len_this_page) break; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html