]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net_sched: Bug in netem reordering
authorHagen Paul Pfeifer <hagen@jauu.net>
Wed, 4 Jan 2012 17:35:26 +0000 (17:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:34:07 +0000 (16:34 -0800)
commit1609e23b0c313d58664bcc0677eadd9464c8c2cc
tree5e986944f9ed01ed2dd08c3317bf977c301a925b
parent9f8a28dca634c4aa13127ed2ea5de94c1e47dbb7
net_sched: Bug in netem reordering

[ Upstream commit eb10192447370f19a215a8c2749332afa1199d46 ]

Not now, but it looks you are correct. q->qdisc is NULL until another
additional qdisc is attached (beside tfifo). See 50612537e9ab2969312.
The following patch should work.

From: Hagen Paul Pfeifer <hagen@jauu.net>

netem: catch NULL pointer by updating the real qdisc statistic

Reported-by: Vijay Subramanian <subramanian.vijay@gmail.com>
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_netem.c