aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_netem.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_netem.c')
-rw-r--r--net/sched/sch_netem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
index 0441876aa1e7..90aeeb7b7167 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -574,7 +574,8 @@ static int netem_init(struct Qdisc *sch, struct rtattr *opt)
574 q->timer.function = netem_watchdog; 574 q->timer.function = netem_watchdog;
575 q->timer.data = (unsigned long) sch; 575 q->timer.data = (unsigned long) sch;
576 576
577 q->qdisc = qdisc_create_dflt(sch->dev, &tfifo_qdisc_ops); 577 q->qdisc = qdisc_create_dflt(sch->dev, &tfifo_qdisc_ops,
578 TC_H_MAKE(sch->handle, 1));
578 if (!q->qdisc) { 579 if (!q->qdisc) {
579 pr_debug("netem: qdisc create failed\n"); 580 pr_debug("netem: qdisc create failed\n");
580 return -ENOMEM; 581 return -ENOMEM;