diff options
Diffstat (limited to 'net/sched/sch_htb.c')
-rw-r--r-- | net/sched/sch_htb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index 4be8d04b262d..87d944941867 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c | |||
@@ -1302,14 +1302,14 @@ static int htb_change_class(struct Qdisc *sch, u32 classid, | |||
1302 | struct htb_class *cl = (struct htb_class *)*arg, *parent; | 1302 | struct htb_class *cl = (struct htb_class *)*arg, *parent; |
1303 | struct nlattr *opt = tca[TCA_OPTIONS]; | 1303 | struct nlattr *opt = tca[TCA_OPTIONS]; |
1304 | struct qdisc_rate_table *rtab = NULL, *ctab = NULL; | 1304 | struct qdisc_rate_table *rtab = NULL, *ctab = NULL; |
1305 | struct nlattr *tb[TCA_HTB_RTAB + 1]; | 1305 | struct nlattr *tb[__TCA_HTB_MAX]; |
1306 | struct tc_htb_opt *hopt; | 1306 | struct tc_htb_opt *hopt; |
1307 | 1307 | ||
1308 | /* extract all subattrs from opt attr */ | 1308 | /* extract all subattrs from opt attr */ |
1309 | if (!opt) | 1309 | if (!opt) |
1310 | goto failure; | 1310 | goto failure; |
1311 | 1311 | ||
1312 | err = nla_parse_nested(tb, TCA_HTB_RTAB, opt, htb_policy); | 1312 | err = nla_parse_nested(tb, TCA_HTB_MAX, opt, htb_policy); |
1313 | if (err < 0) | 1313 | if (err < 0) |
1314 | goto failure; | 1314 | goto failure; |
1315 | 1315 | ||