net_sched: red: Avoid illegal values
Check the qmin & qmax values doesn't overflow for the given Wlog value. Check that qmin <= qmax. Fixes: a7834745 ("[PKT_SCHED]: Generic RED layer") Signed-off-by:Nogah Frankel <nogahf@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/red.h 11 additions, 0 deletionsinclude/net/red.h
- net/sched/sch_choke.c 3 additions, 0 deletionsnet/sched/sch_choke.c
- net/sched/sch_gred.c 3 additions, 0 deletionsnet/sched/sch_gred.c
- net/sched/sch_red.c 2 additions, 0 deletionsnet/sched/sch_red.c
- net/sched/sch_sfq.c 3 additions, 0 deletionsnet/sched/sch_sfq.c
Loading
Please register or sign in to comment