From: Chuck Ebbert <76306.1226@compuserve.com> Date: Thu, 4 Jan 2007 20:17:44 +0000 (-0800) Subject: [NETFILTER]: ebtables: don't compute gap before checking struct type X-Git-Tag: v2.6.20-rc4~85^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f9a2fdc48ccb8bb510b6e1210bf15b3e10afdb;p=pandora-kernel.git [NETFILTER]: ebtables: don't compute gap before checking struct type We cannot compute the gap until we know we have a 'struct ebt_entry' and not 'struct ebt_entries'. Failure to check can cause crash. Tested-by: Santiago Garcia Mantinan Acked-by: Al Viro Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andrew Morton Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed