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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 11 Apr 2008 22:30:52 +0200
From:	Juliusz Chroboczek <Juliusz.Chroboczek@....jussieu.fr>
To:	netdev@...r.kernel.org
Subject: [PATCH] sch_sfb.c: fix typo in compute_qlen.

Of course, this depends on the SFB patch being applied.

                                        Juliusz

diff --git a/net/sched/sch_sfb.c b/net/sched/sch_sfb.c
index b17d35f..f3e1e07 100644
--- a/net/sched/sch_sfb.c
+++ b/net/sched/sch_sfb.c
@@ -202,7 +202,7 @@ static void compute_qlen(u16 *qlen_r, u16 *prob_r, struct sfb_sched_data *q)
                for (j = 0; j < NUMBUCKETS; j++) {
                        if (qlen < q->buckets[filter][i][j].qlen)
                                qlen = q->buckets[filter][i][j].qlen;
-                       if (qlen < q->buckets[filter][i][j].pm)
+                       if (prob < q->buckets[filter][i][j].pm)
                                prob = q->buckets[filter][i][j].pm;
                }
        }
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ