]> err.no Git - linux-2.6/commit
pkt_sched: Use qdisc_lock() on already sampled root qdisc.
authorDavid S. Miller <davem@davemloft.net>
Sun, 3 Aug 2008 03:02:43 +0000 (20:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Aug 2008 03:02:43 +0000 (20:02 -0700)
commit5fb662297b8a4bdadd60371c34b760efca948ebc
treeef1def70cfa440ab3d367f6f67d466227ffdf0ef
parent82f97b8d3cb3982ec97e081598c671fab2c321b0
pkt_sched: Use qdisc_lock() on already sampled root qdisc.

Based upon a bug report by Jeff Kirsher.

Don't use qdisc_root_lock() in these cases as the root
qdisc could have been changed, and we'd thus lock the
wrong object.

Tested by Emil S Tantilov who confirms that this seems
to fix the problem.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/sched/sch_generic.c