Jarek Poplawski wrote:
> +static int prio_dump_class_stats(struct Qdisc *sch, unsigned long cl,
> +                              struct gnet_dump *d)
> +{
> +     struct prio_sched_data *q = qdisc_priv(sch);
> +     struct Qdisc *cl_q;
> +
> +     if (cl - 1 > q->bands)
> +             return -1;

Thats not what I meant, it still hides the bug. Either do
nothing (don't check) or do BUG_ON(cl - 1 > q->bands).

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to