From: Eric Dumazet Date: Sat, 8 Mar 2014 16:01:19 +0000 (-0800) Subject: pkt_sched: move the sanity test in qdisc_list_add() X-Git-Tag: v3.14-rc7~10^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37314363cd65d19c71bea5f222e5108c93dc3c78;p=pandora-kernel.git pkt_sched: move the sanity test in qdisc_list_add() The WARN_ON(root == &noop_qdisc)) added in qdisc_list_add() can trigger in normal conditions when devices are not up. It should be done only right before the list_add_tail() call. Fixes: e57a784d8cae4 ("pkt_sched: set root qdisc before change() in attach_default_qdiscs()") Reported-by: Valdis Kletnieks Tested-by: Mirco Tischler Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed