diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-10-09 13:24:07 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:54:59 -0700 |
commit | 1ecafede835321ebdc396531245adc37d22366f7 (patch) | |
tree | 230419433b8a08b86abf8998da84652c66c3b20e /net/ipv6/xfrm6_mode_ro.c | |
parent | 32f0c4cbe495d121c09ed14d9c84f9e1b9574415 (diff) |
[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 <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_mode_ro.c')
0 files changed, 0 insertions, 0 deletions