[PATCH] crypto api: Use the right value when advancing scatterwalk_copychunks
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 31 Mar 2007 02:14:37 +0000 (12:14 +1000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 31 Mar 2007 02:26:33 +0000 (19:26 -0700)
commitbeff804d8dd360ccb4dd0096c9fd77a93fe9049e
treecbc72c484fc07ee86b26be196518dd8ca37ac4ff
parentc35e584c087381aaa5f1ed40a28b978535c18fb2
[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 <herbert@gondor.apana.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
crypto/scatterwalk.c