diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index be7cd140b2a381492889bfab3437d01b72d2e178..b06cc5e504127b997a0beab4a81d0a471e215f03 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1831,6 +1831,8 @@ static void tc_bind_tclass(struct Qdisc *q, u32 portid, u32 clid, cl = cops->find(q, portid); if (!cl) return; + if (!cops->tcf_block) + return; block = cops->tcf_block(q, cl, NULL); if (!block) return;