From: Cristian Stoica Date: Tue, 27 Jan 2015 09:54:27 +0000 (+0200) Subject: crypto: tcrypt - fix buflen reminder calculation X-Git-Tag: fixes-v4.0-rc1~106^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c47689931fff5f8882a923bbd8d8590f038fa097;p=pandora-kernel.git crypto: tcrypt - fix buflen reminder calculation - This fixes the intent of the code to limit the last scatterlist to either a full PAGE or a fraction of it, depending on the number of pages needed by buflen and the available space advertised by XBUFLEN. The original code always sets the last scatterlist to a fraction of a PAGE because the first 'if' is never executed. - Rearrange the second part of the code to remove the conditional from the loop Signed-off-by: Cristian Stoica Signed-off-by: Herbert Xu --- Reading git-diff-tree failed