[PATCH 6/8] backports: tcf_destroy_chain takes a normal pointer on <= 2.6.25

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux