]> git.neil.brown.name Git - history.git/commitdiff
Fix bug in sch_prio.c where wrong handle was
authorAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Tue, 19 Mar 2002 12:20:30 +0000 (04:20 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Tue, 19 Mar 2002 12:20:30 +0000 (04:20 -0800)
being dumped.

net/sched/sch_prio.c

index 6d056b86c04d2055b785e959c2a6dba113ff24e9..62a37363c841a475c0816a02bb96b91dc4afc3ae 100644 (file)
@@ -327,6 +327,7 @@ static int prio_dump_class(struct Qdisc *sch, unsigned long cl, struct sk_buff *
 
        if (cl - 1 > q->bands)
                return -ENOENT;
+       tcm->tcm_handle |= TC_H_MIN(cl);
        if (q->queues[cl-1])
                tcm->tcm_info = q->queues[cl-1]->handle;
        return 0;