aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hfsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r--net/sched/sch_hfsc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index 071c4749a12b..51dd3f401623 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -1202,7 +1202,8 @@ hfsc_graft_class(struct Qdisc *sch, unsigned long arg, struct Qdisc *new,
1202 1202
1203 sch_tree_lock(sch); 1203 sch_tree_lock(sch);
1204 hfsc_purge_queue(sch, cl); 1204 hfsc_purge_queue(sch, cl);
1205 *old = xchg(&cl->qdisc, new); 1205 *old = cl->qdisc;
1206 cl->qdisc = new;
1206 sch_tree_unlock(sch); 1207 sch_tree_unlock(sch);
1207 return 0; 1208 return 0;
1208} 1209}