From: Dan Carpenter Date: Mon, 11 May 2015 10:10:09 +0000 (+0300) Subject: crypto: talitos - fix size calculation in talitos_edesc_alloc() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~164^2~189 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=608f37d0f83e4359f48121949778bf912cd56800;p=pandora-kernel.git crypto: talitos - fix size calculation in talitos_edesc_alloc() The + operation has higher precedence than ?: so we need parentheses here. Otherwise we may end up allocating a max of only one "cryptlen" instead of two. Fixes: 6f65f6ac5fb3 ('crypto: talitos - implement scatter/gather copy for SEC1') Signed-off-by: Dan Carpenter Acked-by: Christophe Leroy Signed-off-by: Herbert Xu --- Reading git-diff-tree failed