From: Herbert Xu Date: Tue, 30 Nov 2010 09:04:31 +0000 (+0800) Subject: crypto: algif_skcipher - Handle unaligned receive buffer X-Git-Tag: v2.6.38-rc1~238^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc97e57eb21f8db55bf0e1f182d384e75b2e3c99;p=pandora-kernel.git crypto: algif_skcipher - Handle unaligned receive buffer As it is if user-space passes through a receive buffer that's not aligned to to the cipher block size, we'll end up encrypting or decrypting a partial block which causes a spurious EINVAL to be returned. This patch fixes this by moving the partial block test after the af_alg_make_sg call. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed