]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit8afa10cbe281b10371fee5a87ab266e48d71a7f9
treef821390027974ff7b78d22df3862e181bea9d2ca
parent5c472203421ab4f928aa1ae9e1dbcfdd80324148
net_sched: red: Avoid illegal values

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

Fixes: a783474591f2 ("[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