commit | 136f702f51a4bfa38003660768e7153823fff8a1 | [log] [tgz] |
---|---|---|
author | Patrick McHardy <kaber@trash.net> | Wed May 07 22:34:27 2008 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Jul 10 20:35:11 2008 +0800 |
tree | 61bd60f542dcaf74419d47a7d5866138727bb566 | |
parent | d069033b42b392662320f71e319296a14d57ff3a [diff] |
[HIFN]: Properly handle requests for less than the full scatterlist The scatterlist may contain more data than the crypto request, causing an underflow of the remaining byte count while walking the list. Use the minimum of the scatterlist element size and the remaining byte count specified in the crypto request to avoid this. Signed-off-by: Patrick McHardy <kaber@trash.net> Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>