pkt_sched: Fix return value corruption in HTB and TBF.
commit685f605a498b73759cbcbc816089e804710fcc48
authorDavid S. Miller <davem@davemloft.net>
Thu, 28 Aug 2008 05:35:56 +0000 (27 22:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Sep 2008 11:44:23 +0000 (8 04:44 -0700)
tree9f194132f70fb25b9888363c3e6804f8221d17eb
parent7b29aece66858d8ee1fb10ca413fda072bfa74b6
pkt_sched: Fix return value corruption in HTB and TBF.

[ Upstream commit 69747650c814a8a79fef412c7416adf823293a3e ]

Based upon a bug report by Josip Rodin.

Packet schedulers should only return NET_XMIT_DROP iff
the packet really was dropped.  If the packet does reach
the device after we return NET_XMIT_DROP then TCP can
crash because it depends upon the enqueue path return
values being accurate.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/sch_htb.c
net/sched/sch_tbf.c