Commit 7b4b6d02 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[PKT_SCHED]: Missing qdisc destroy in sch_netem.

The underlying qdisc was not being properly destroyed, shows up as
assertion failure on device removal.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent e86d35cb
...@@ -806,6 +806,9 @@ static void netem_destroy(struct Qdisc *sch) ...@@ -806,6 +806,9 @@ static void netem_destroy(struct Qdisc *sch)
struct netem_sched_data *q = (struct netem_sched_data *)sch->data; struct netem_sched_data *q = (struct netem_sched_data *)sch->data;
del_timer_sync(&q->timer); del_timer_sync(&q->timer);
qdisc_destroy(q->qdisc);
q->qdisc = &noop_qdisc;
} }
static int netem_dump(struct Qdisc *sch, struct sk_buff *skb) static int netem_dump(struct Qdisc *sch, struct sk_buff *skb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment