From: Patrick McHardy Date: Wed, 7 May 2008 14:34:27 +0000 (+0800) Subject: [HIFN]: Properly handle requests for less than the full scatterlist X-Git-Tag: v2.6.27-rc1~1107^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=136f702f51a4bfa38003660768e7153823fff8a1;p=pandora-kernel.git [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 Acked-by: Evgeniy Polyakov Signed-off-by: Herbert Xu --- Reading git-diff-tree failed