]> err.no Git - linux-2.6/commit
pkt_sched: Fix return value corruption in HTB and TBF.
authorDavid S. Miller <davem@davemloft.net>
Mon, 18 Aug 2008 06:55:36 +0000 (23:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Aug 2008 07:39:41 +0000 (00:39 -0700)
commit69747650c814a8a79fef412c7416adf823293a3e
treec1c83e9ae903b0e93029f0071fdca544d2add340
parent96d203169d1d851ac1468f7d4459a09581be364c
pkt_sched: Fix return value corruption in HTB and TBF.

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>
net/sched/sch_htb.c
net/sched/sch_tbf.c