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.27.14~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d493ba54d96d117fb3dff027141444584f852054;p=pandora-kernel.git crypto: authenc - Fix zero-length IV crash commit 29b37f42127f7da511560a40ea74f5047da40c13 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed