From: Herbert Xu Date: Tue, 9 Oct 2007 20:24:07 +0000 (-0700) Subject: [IPSEC]: Remove bogus ref count in xfrm_secpath_reject X-Git-Tag: v2.6.24-rc1~1454^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ecafede835321ebdc396531245adc37d22366f7;p=pandora-kernel.git [IPSEC]: Remove bogus ref count in xfrm_secpath_reject Constructs of the form xfrm_state_hold(x); foo(x); xfrm_state_put(x); tend to be broken because foo is either synchronous where this is totally unnecessary or if foo is asynchronous then the reference count is in the wrong spot. In the case of xfrm_secpath_reject, the function is synchronous and therefore we should just kill the reference count. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed