]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fq_codel: fix TCA_FQ_CODEL_DROP_BATCH_SIZE sanity checks
authorEric Dumazet <edumazet@google.com>
Sat, 25 Apr 2020 19:40:25 +0000 (12:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2020 05:57:17 +0000 (07:57 +0200)
commitd10f7717357dd5397878660af04aae3efe258e13
tree47c615c923e25484cfedf62c7405310bc27ea088
parent9667042cbe58c57b41b66499de2149d41d249486
fq_codel: fix TCA_FQ_CODEL_DROP_BATCH_SIZE sanity checks

[ Upstream commit 14695212d4cd8b0c997f6121b6df8520038ce076 ]

My intent was to not let users set a zero drop_batch_size,
it seems I once again messed with min()/max().

Fixes: 9d18562a2278 ("fq_codel: add batch ability to fq_codel_drop()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_fq_codel.c