diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c index 16ab7b148..aa827b461 100755 --- a/net/sched/sch_taprio.c +++ b/net/sched/sch_taprio.c @@ -1577,9 +1577,7 @@ static int taprio_change(struct Qdisc *sch, struct nlattr *opt, goto unlock; } - /* Not going to race against advance_sched(), but still */ - admin = rcu_replace_pointer(q->admin_sched, new_admin, - lockdep_rtnl_is_held()); + rcu_assign_pointer(q->admin_sched, new_admin); if (admin) call_rcu(&admin->rcu, taprio_free_sched_cb); } else {