Skip to content

Commit

Permalink
net_sched: use __TCA_HTB_MAX and TCA_HTB_MAX
Browse files Browse the repository at this point in the history
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Changli Gao authored and David S. Miller committed Oct 9, 2010
1 parent 4315d83 commit e18434c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1302,14 +1302,14 @@ static int htb_change_class(struct Qdisc *sch, u32 classid,
struct htb_class *cl = (struct htb_class *)*arg, *parent;
struct nlattr *opt = tca[TCA_OPTIONS];
struct qdisc_rate_table *rtab = NULL, *ctab = NULL;
struct nlattr *tb[TCA_HTB_RTAB + 1];
struct nlattr *tb[__TCA_HTB_MAX];
struct tc_htb_opt *hopt;

/* extract all subattrs from opt attr */
if (!opt)
goto failure;

err = nla_parse_nested(tb, TCA_HTB_RTAB, opt, htb_policy);
err = nla_parse_nested(tb, TCA_HTB_MAX, opt, htb_policy);
if (err < 0)
goto failure;

Expand Down

0 comments on commit e18434c

Please sign in to comment.