Message ID | 20230728153537.1865379-4-pctammela@mojatatu.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 8e4553ef3ed5ea6d58e7ab89955e2a56be4aa4f4 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net/sched: improve class lifetime handling | expand |
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 896cb401fdb9..98805303218d 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c @@ -1094,8 +1094,10 @@ hfsc_delete_class(struct Qdisc *sch, unsigned long arg, struct hfsc_class *cl = (struct hfsc_class *)arg; if (cl->level > 0 || qdisc_class_in_use(&cl->cl_common) || - cl == &q->root) + cl == &q->root) { + NL_SET_ERR_MSG(extack, "HFSC class in use"); return -EBUSY; + } sch_tree_lock(sch);