]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: fq_codel: Fix off-by-one error
authorVijay Subramanian <subramanian.vijay@gmail.com>
Thu, 28 Mar 2013 13:52:00 +0000 (13:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:19 +0000 (09:26 -0700)
commitfd7016c4656e5f83853bed6f2d84bd61368a7b02
tree47755efbe66e8e9e8a99a83336a4d3b141af569d
parent0f6c504f9d65d9febc7b4b03d5a1428757e99e9d
net: fq_codel: Fix off-by-one error

[ Upstream commit cd68ddd4c29ab523440299f24ff2417fe7a0dca6 ]

Currently, we hold a max of sch->limit -1 number of packets instead of
sch->limit packets. Fix this off-by-one error.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.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