projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bc60d3
)
backports: tcf_destroy_chain takes a normal pointer on <= 2.6.25
author
Hauke Mehrtens
<hauke@hauke-m.de>
Wed, 23 Oct 2013 19:33:32 +0000
(21:33 +0200)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Wed, 23 Oct 2013 21:19:10 +0000
(23:19 +0200)
This caused a compile warning and probably runtime errors in
sch_fq_codel_core.c
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/compat/sch_fq_codel_core.c
patch
|
blob
|
history
diff --git
a/backport/compat/sch_fq_codel_core.c
b/backport/compat/sch_fq_codel_core.c
index 6b87c713196ea3274b498eed3c92ed37e0af23da..f7139791d48403188d84ae0f9f109067ce42d685 100644
(file)
--- 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);
}