From: Herbert Xu Date: Tue, 13 Jan 2009 00:26:18 +0000 (+1100) Subject: crypto: authenc - Fix zero-length IV crash X-Git-Tag: v2.6.29-rc3~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29b37f42127f7da511560a40ea74f5047da40c13;p=pandora-kernel.git crypto: authenc - Fix zero-length IV crash As it is if an algorithm with a zero-length IV is used (e.g., NULL encryption) with authenc, authenc may generate an SG entry of length zero, which will trigger a BUG check in the hash layer. This patch fixes it by skipping the IV SG generation if the IV size is zero. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed