Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195174
b: refs/heads/master
c: f0cd150
h: refs/heads/master
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed May 18, 2010
1 parent 4058865 commit 612d172
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ccbd6a5a4f76e821ed36f69fdaf59817c3a7f18e
refs/heads/master: f0cd15081a72075df16c45a2310e873fb9fcd82f
6 changes: 5 additions & 1 deletion trunk/net/sched/sch_tbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,11 @@ static int tbf_change(struct Qdisc* sch, struct nlattr *opt)
if (max_size < 0)
goto done;

if (qopt->limit > 0) {
if (q->qdisc != &noop_qdisc) {
err = fifo_set_limit(q->qdisc, qopt->limit);
if (err)
goto done;
} else if (qopt->limit > 0) {
child = fifo_create_dflt(sch, &bfifo_qdisc_ops, qopt->limit);
if (IS_ERR(child)) {
err = PTR_ERR(child);
Expand Down

0 comments on commit 612d172

Please sign in to comment.