forked from Minki/linux
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>
This commit is contained in:
parent
abb81c4f3c
commit
08569908ff
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user