lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20120618122554.403f53ec@nehalam.linuxnetplumber.net> Date: Mon, 18 Jun 2012 12:25:54 -0700 From: Stephen Hemminger <shemminger@...tta.com> To: Li Wei <lw@...fujitsu.com> Cc: netdev <netdev@...r.kernel.org> Subject: Re: [PATCH] tc: prio: Perform more strict check on priomap. On Mon, 18 Jun 2012 14:33:38 +0800 Li Wei <lw@...fujitsu.com> wrote: > > Since band number counts from zero thus band must be little than > opt.bands. > --- > tc/q_prio.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/tc/q_prio.c b/tc/q_prio.c > index 79b4fd0..bacc702 100644 > --- a/tc/q_prio.c > +++ b/tc/q_prio.c > @@ -67,7 +67,7 @@ static int prio_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct n > fprintf(stderr, "Illegal \"priomap\" element\n"); > return -1; > } > - if (band > opt.bands) { > + if (band >= opt.bands) { > fprintf(stderr, "\"priomap\" element is out of bands\n"); > return -1; > } Applied -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists