diff options
author | Patrick McHardy <kaber@trash.net> | 2007-11-27 11:10:07 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-27 11:10:07 +0800 |
commit | 5dba4797115c8fa05c1a4d12927a6ae0b33ffc41 (patch) | |
tree | 6f515e0e29352ff06887ceb272e106e87966f709 /kernel/sysctl_check.c | |
parent | 8a8037ac9dbe4eb20ce50aa20244faf77444f4a3 (diff) | |
download | linux-5dba4797115c8fa05c1a4d12927a6ae0b33ffc41.tar.gz linux-5dba4797115c8fa05c1a4d12927a6ae0b33ffc41.tar.bz2 linux-5dba4797115c8fa05c1a4d12927a6ae0b33ffc41.zip |
[XFRM]: Fix leak of expired xfrm_states
The xfrm_timer calls __xfrm_state_delete, which drops the final reference
manually without triggering destruction of the state. Change it to use
xfrm_state_put to add the state to the gc list when we're dropping the
last reference. The timer function may still continue to use the state
safely since the final destruction does a del_timer_sync().
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/sysctl_check.c')
0 files changed, 0 insertions, 0 deletions