aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_drr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_drr.c')
-rw-r--r--net/sched/sch_drr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c
index e71a5de23e23..8d523d9b636c 100644
--- a/net/sched/sch_drr.c
+++ b/net/sched/sch_drr.c
@@ -208,7 +208,8 @@ static int drr_graft_class(struct Qdisc *sch, unsigned long arg,
208 208
209 sch_tree_lock(sch); 209 sch_tree_lock(sch);
210 drr_purge_queue(cl); 210 drr_purge_queue(cl);
211 *old = xchg(&cl->qdisc, new); 211 *old = cl->qdisc;
212 cl->qdisc = new;
212 sch_tree_unlock(sch); 213 sch_tree_unlock(sch);
213 return 0; 214 return 0;
214} 215}