From: David S. Miller Date: Wed, 10 Sep 2008 05:13:28 +0000 (-0700) Subject: ipsec: Add missing list_del() in xfrm_state_gc_task(). X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=08569908fffec3625e29eec7cf7577eaa512e719;p=openwrt%2Fstaging%2Fblogic.git 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 --- diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index aaafcee02fc5..abbe2702c400 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); }