projects
/
wrapfs-3.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ff3da3
)
pkt_sched: Fix sch_sfq vs tc_modify_qdisc oops
author
Jarek Poplawski
<jarkao2@gmail.com>
Tue, 10 Aug 2010 22:31:02 +0000
(22:31 +0000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 26 Aug 2010 23:46:00 +0000
(16:46 -0700)
[ Upstream commit
41065fba846e795b31b17e4dec01cb904d56c6cd
]
sch_sfq as a classful qdisc needs the .leaf handler. Otherwise, there
is an oops possible in tc_modify_qdisc()/check_loop().
Fixes commit
7d2681a6ff4f9ab5e48d02550b4c6338f1638998
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/sch_sfq.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_sfq.c
b/net/sched/sch_sfq.c
index 9ba71ba0f8f011e0237039d78dad8ec9d0d9e57d..a9be0ef65e87e7eaf99f2c1468c25c4539ad55e5 100644
(file)
--- a/
net/sched/sch_sfq.c
+++ b/
net/sched/sch_sfq.c
@@
-497,6
+497,11
@@
nla_put_failure:
return -1;
}
+static struct Qdisc *sfq_leaf(struct Qdisc *sch, unsigned long arg)
+{
+ return NULL;
+}
+
static unsigned long sfq_get(struct Qdisc *sch, u32 classid)
{
return 0;
@@
-560,6
+565,7
@@
static void sfq_walk(struct Qdisc *sch, struct qdisc_walker *arg)
}
static const struct Qdisc_class_ops sfq_class_ops = {
+ .leaf = sfq_leaf,
.get = sfq_get,
.tcf_chain = sfq_find_tcf,
.bind_tcf = sfq_bind,