]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jan 2012 18:27:39 +0000 (13:27 -0500)
commit7d154219f88e9c5dee7acfbb8201b0b89d3c0c19
tree3c29d462ed3bc3b6c7af1492ca66395d2f0c5d42
parentabce37b0a5b5c0d986045a87fe96d847eeaccdb1
net_sched: Bug in netem reordering

Not now, but it looks you are correct. q->qdisc is NULL until another
additional qdisc is attached (beside tfifo). See 531ebb1e1f2a300391c.
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>
net/sched/sch_netem.c