Skip to content

Commit

Permalink
sch_sfq: use del_timer_sync() in sfq_destroy()
Browse files Browse the repository at this point in the history
Let's delete timer reliably in sfq_destroy().

Signed-off-by: Jarek Poplawski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jarek Poplawski authored and davem330 committed Apr 29, 2008
1 parent 42908c6 commit 980c478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sched/sch_sfq.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ static void sfq_destroy(struct Qdisc *sch)
struct sfq_sched_data *q = qdisc_priv(sch);

tcf_destroy_chain(q->filter_list);
del_timer(&q->perturb_timer);
q->perturb_period = 0;
del_timer_sync(&q->perturb_timer);
}

static int sfq_dump(struct Qdisc *sch, struct sk_buff *skb)
Expand Down

0 comments on commit 980c478

Please sign in to comment.