Skip to content

Commit

Permalink
ipsec: Add missing list_del() in xfrm_state_gc_task().
Browse files Browse the repository at this point in the history
Otherwise entries stay on the GC todo list forever, even after we free
them.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 10, 2008
1 parent abb81c4 commit 0856990
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/xfrm/xfrm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0856990

Please sign in to comment.