From: Eric Dumazet Date: Sat, 22 May 2010 20:37:44 +0000 (+0000) Subject: net_sched: Fix qdisc_notify() X-Git-Tag: v2.6.35-rc1~260^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53b0f08042f04813cd1a7473dacd3edfacb28eb3;p=pandora-kernel.git net_sched: Fix qdisc_notify() Ben Pfaff reported a kernel oops and provided a test program to reproduce it. https://kerneltrap.org/mailarchive/linux-netdev/2010/5/21/6277805 tc_fill_qdisc() should not be called for builtin qdisc, or it dereference a NULL pointer to get device ifindex. Fix is to always use tc_qdisc_dump_ignore() before calling tc_fill_qdisc(). Reported-by: Ben Pfaff Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed