diff options
Diffstat (limited to 'net/sched/sch_api.c')
| -rw-r--r-- | net/sched/sch_api.c | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 74afc210527d..2eefa4783879 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -593,7 +593,6 @@ out:  		pkt_len = 1;  	qdisc_skb_cb(skb)->pkt_len = pkt_len;  } -EXPORT_SYMBOL(__qdisc_calculate_pkt_len);  void qdisc_warn_nonwc(const char *txt, struct Qdisc *qdisc)  { @@ -1201,6 +1200,12 @@ skip:  			return -EINVAL;  		} +		if (new && +		    !(parent->flags & TCQ_F_MQROOT) && +		    rcu_access_pointer(new->stab)) { +			NL_SET_ERR_MSG(extack, "STAB not supported on a non root"); +			return -EINVAL; +		}  		err = cops->graft(parent, cl, new, &old, extack);  		if (err)  			return err;  | 
