This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / net / sched / sch_dsmark.c
index e0831a4..92e9f33 100644 (file)
@@ -30,7 +30,7 @@
 #endif
 
 
-#define PRIV(sch) qdisc_priv(sch)
+#define PRIV(sch) ((struct dsmark_qdisc_data *) (sch)->data)
 
 
 /*
@@ -383,6 +383,7 @@ static void dsmark_destroy(struct Qdisc *sch)
                tcf_destroy(tp);
        }
        qdisc_destroy(p->q);
+       p->q = &noop_qdisc;
        kfree(p->mask);
 }