[PATCH] crypto: scatterwalk_copychunks() fails to advance through scatterlist

Herbert Xu herbert at gondor.apana.org.au
Tue Mar 20 16:54:21 EDT 2007


On Tue, Mar 20, 2007 at 10:16:14AM -0400, J. Bruce Fields wrote:
> 
> Are the elements of the scatterlists assumed to always be full pages?  I

Definitely not.

> need to encrypt things that look like, for example:
> 
> 	sg[0].page = page1
> 	sg[0].offset = 0
> 	sg[0].length = 5
> 	sg[1].page = page2
> 	sg[1].offset = 0
> 	sg[1].length = 37

OK I see what you mean now.  I'll apply your patch.

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


More information about the NFSv4 mailing list