summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backport/compat/sch_fq_codel_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backport/compat/sch_fq_codel_core.c b/backport/compat/sch_fq_codel_core.c
index 6b87c713..f7139791 100644
--- a/backport/compat/sch_fq_codel_core.c
+++ b/backport/compat/sch_fq_codel_core.c
@@ -393,7 +393,11 @@ static void fq_codel_destroy(struct Qdisc *sch)
{
struct fq_codel_sched_data *q = qdisc_priv(sch);
+#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,25))
+ tcf_destroy_chain(q->filter_list);
+#else
tcf_destroy_chain(&q->filter_list);
+#endif
fq_codel_free(q->backlogs);
fq_codel_free(q->flows);
}