diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 74f697c4a4d30209def45147cd6e7859b4b79cfe..9fb5ee64834a03a57fd77bf475050ff9502fcf83 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c @@ -658,6 +658,9 @@ static int sfq_change(struct Qdisc *sch, struct nlattr *opt) if (!p) return -ENOMEM; } + if (ctl->limit == 1) + return -EINVAL; + sch_tree_lock(sch); if (ctl->quantum) { q->quantum = ctl->quantum;