diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-09 22:13:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-09 22:13:28 -0700 |
commit | 08569908fffec3625e29eec7cf7577eaa512e719 (patch) | |
tree | 5d28f7766863b7146e76a92909e8a1c5099ef886 /net/xfrm/xfrm_state.c | |
parent | abb81c4f3cb9b8d421f1e5474811ef1d461d341c (diff) | |
download | op-kernel-dev-08569908fffec3625e29eec7cf7577eaa512e719.zip op-kernel-dev-08569908fffec3625e29eec7cf7577eaa512e719.tar.gz |
ipsec: Add missing list_del() in xfrm_state_gc_task().
Otherwise entries stay on the GC todo list forever, even after we free
them.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index aaafcee..abbe270 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -423,6 +423,7 @@ static void xfrm_state_gc_task(struct work_struct *data) list_for_each_entry_safe(x, tmp, &xfrm_state_gc_leftovers, gclist) { if ((long)(x->lastused - completed) > 0) break; + list_del(&x->gclist); xfrm_state_gc_destroy(x); } |