From: Vutla, Lokesh Date: Tue, 31 Mar 2015 04:22:25 +0000 (+0530) Subject: crypto: omap-aes - Fix support for unequal lengths X-Git-Tag: omap-for-v4.1/fixes-rc1~140^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d7e7e02a044025237b6f62a20521170b794537f;p=pandora-kernel.git crypto: omap-aes - Fix support for unequal lengths For cases where total length of an input SGs is not same as length of the input data for encryption, omap-aes driver crashes. This happens in the case when IPsec is trying to use omap-aes driver. To avoid this, we copy all the pages from the input SG list into a contiguous buffer and prepare a single element SG list for this buffer with length as the total bytes to crypt, which is similar thing that is done in case of unaligned lengths. Fixes: 6242332ff2f3 ("crypto: omap-aes - Add support for cases of unaligned lengths") Signed-off-by: Lokesh Vutla Signed-off-by: Herbert Xu --- Reading git-diff-tree failed