Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79540
b: refs/heads/master
c: 5feb5e1
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent 58ae1ac commit 9a8c7cd
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 1587bac49f8491b5006a78f8d726111b71757941
refs/heads/master: 5feb5e1aaa887f6427b8290bce48bfb6b7010fc6
2 changes: 2 additions & 0 deletions trunk/include/linux/pkt_sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ struct tc_ratespec
__u32 rate;
};

#define TC_RTAB_SIZE 1024

/* FIFO section */

struct tc_fifo_qopt
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, struct nlattr *ta
}
}

if (tab == NULL || r->rate == 0 || r->cell_log == 0 || nla_len(tab) != 1024)
if (tab == NULL || r->rate == 0 || r->cell_log == 0 ||
nla_len(tab) != TC_RTAB_SIZE)
return NULL;

rtab = kmalloc(sizeof(*rtab), GFP_KERNEL);
Expand Down

0 comments on commit 9a8c7cd

Please sign in to comment.