From: Changli Gao Date: Thu, 30 Sep 2010 06:17:44 +0000 (+0000) Subject: net_sched: use __TCA_HTB_MAX and TCA_HTB_MAX X-Git-Tag: MMI-PSA29.97-13-9~21994^2~178 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e18434c45765cfc4a74b5c61da9e9fbc6ddd3d5f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net_sched: use __TCA_HTB_MAX and TCA_HTB_MAX Signed-off-by: Changli Gao Signed-off-by: David S. Miller --- 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, 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;