This caused a compile warning and probably runtime errors in
sch_fq_codel_core.c

Signed-off-by: Hauke Mehrtens <[email protected]>
---
 backport/compat/sch_fq_codel_core.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backport/compat/sch_fq_codel_core.c 
b/backport/compat/sch_fq_codel_core.c
index 6b87c71..f713979 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);
 }
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to