diff options
Diffstat (limited to 'net/sched/sch_atm.c')
-rw-r--r-- | net/sched/sch_atm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c index ca90f6e59aee..2a8b83af7c47 100644 --- a/net/sched/sch_atm.c +++ b/net/sched/sch_atm.c | |||
@@ -102,7 +102,8 @@ static int atm_tc_graft(struct Qdisc *sch, unsigned long arg, | |||
102 | return -EINVAL; | 102 | return -EINVAL; |
103 | if (!new) | 103 | if (!new) |
104 | new = &noop_qdisc; | 104 | new = &noop_qdisc; |
105 | *old = xchg(&flow->q, new); | 105 | *old = flow->q; |
106 | flow->q = new; | ||
106 | if (*old) | 107 | if (*old) |
107 | qdisc_reset(*old); | 108 | qdisc_reset(*old); |
108 | return 0; | 109 | return 0; |