From: Timo Teräs Date: Mon, 12 Jul 2010 21:29:42 +0000 (+0000) Subject: xfrm: do not assume that template resolving always returns xfrms X-Git-Tag: v2.6.35-rc6~15^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d809ec895505e6f35fb1965f0946381ab4eaa474;p=pandora-kernel.git xfrm: do not assume that template resolving always returns xfrms xfrm_resolve_and_create_bundle() assumed that, if policies indicated presence of xfrms, bundle template resolution would always return some xfrms. This is not true for 'use' level policies which can result in no xfrm's being applied if there is no suitable xfrm states. This fixes a crash by this incorrect assumption. Reported-by: George Spelvin Bisected-by: George Spelvin Tested-by: George Spelvin Signed-off-by: Timo Teräs Signed-off-by: David S. Miller --- Reading git-diff-tree failed