From: Steffen Klassert Date: Thu, 20 Aug 2009 07:58:04 +0000 (+1000) Subject: crypto: xcbc - Fix alignment calculation of xcbc_tfm_ctx X-Git-Tag: v2.6.32-rc1~731^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36f87a4a29cb8cd291169483079fde34bad4ef16;p=pandora-kernel.git crypto: xcbc - Fix alignment calculation of xcbc_tfm_ctx The alignment calculation of xcbc_tfm_ctx uses alg->cra_alignmask and not alg->cra_alignmask + 1 as it should. This led to frequent crashes during the selftest of xcbc(aes-asm) on x86_64 machines. This patch fixes this. Also we use the alignmask of xcbc and not the alignmask of the underlying algorithm for the alignmnent calculation in xcbc_create now. Signed-off-by: Steffen Klassert Signed-off-by: Herbert Xu --- Reading git-diff-tree failed