diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/cls_cgroup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 0f815cc6a3db..e4877ca6727c 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c | |||
@@ -161,6 +161,9 @@ static int cls_cgroup_change(struct tcf_proto *tp, unsigned long base, | |||
161 | struct tcf_exts e; | 161 | struct tcf_exts e; |
162 | int err; | 162 | int err; |
163 | 163 | ||
164 | if (!tca[TCA_OPTIONS]) | ||
165 | return -EINVAL; | ||
166 | |||
164 | if (head == NULL) { | 167 | if (head == NULL) { |
165 | if (!handle) | 168 | if (!handle) |
166 | return -EINVAL; | 169 | return -EINVAL; |