Message ID | 20230728153537.1865379-3-pctammela@mojatatu.com (mailing list archive) |
---|---|
State | Accepted |
Commit | daf8d9181b9b4b58d3b182d1fea10dec75c5de88 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net/sched: improve class lifetime handling | expand |
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c index 1b22b3b741c9..19901e77cd3b 100644 --- a/net/sched/sch_drr.c +++ b/net/sched/sch_drr.c @@ -149,8 +149,10 @@ static int drr_delete_class(struct Qdisc *sch, unsigned long arg, struct drr_sched *q = qdisc_priv(sch); struct drr_class *cl = (struct drr_class *)arg; - if (qdisc_class_in_use(&cl->common)) + if (qdisc_class_in_use(&cl->common)) { + NL_SET_ERR_MSG(extack, "DRR class is in use"); return -EBUSY; + } sch_tree_lock(sch);