diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 8ed2f5649029..408eea7086aa 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -161,7 +161,7 @@ int register_qdisc(struct Qdisc_ops *qops) | |||
161 | if (qops->cl_ops) { | 161 | if (qops->cl_ops) { |
162 | const struct Qdisc_class_ops *cops = qops->cl_ops; | 162 | const struct Qdisc_class_ops *cops = qops->cl_ops; |
163 | 163 | ||
164 | if (!(cops->get && cops->put)) | 164 | if (!(cops->get && cops->put && cops->walk && cops->leaf)) |
165 | goto out_einval; | 165 | goto out_einval; |
166 | 166 | ||
167 | if (cops->tcf_chain && !(cops->bind_tcf && cops->unbind_tcf)) | 167 | if (cops->tcf_chain && !(cops->bind_tcf && cops->unbind_tcf)) |