From: Timo Teräs Date: Thu, 24 Jun 2010 21:35:00 +0000 (-0700) Subject: xfrm: check bundle policy existance before dereferencing it X-Git-Tag: v2.6.35-rc4~54^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1312c89f0016f778cac4f1536f1434e132f8713;p=pandora-kernel.git xfrm: check bundle policy existance before dereferencing it Fix the bundle validation code to not assume having a valid policy. When we have multiple transformations for a xfrm policy, the bundle instance will be a chain of bundles with only the first one having the policy reference. When policy_genid is bumped it will expire the first bundle in the chain which is equivalent of expiring the whole chain. Reported-bisected-and-tested-by: Justin P. Mattock Signed-off-by: Timo Teräs Signed-off-by: David S. Miller --- Reading git-diff-tree failed