]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: red: Avoid illegal values
authorNogah Frankel <nogahf@mellanox.com>
Mon, 4 Dec 2017 11:31:11 +0000 (13:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 19:37:13 +0000 (14:37 -0500)
commitdf65e3f890c5a6ea826ce87951397d3d8304f18f
treef821390027974ff7b78d22df3862e181bea9d2ca
parent4745de19214fe1ab04e48d533763a8b4c1437c85
net_sched: red: Avoid illegal values

Check the qmin & qmax values doesn't overflow for the given Wlog value.
Check that qmin <= qmax.

Fixes: 6ea5c2f9552d ("[PKT_SCHED]: Generic RED layer")
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/red.h
net/sched/sch_choke.c
net/sched/sch_gred.c
net/sched/sch_red.c
net/sched/sch_sfq.c