aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sched/cls_cgroup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c
index 4c1567854f95..706a160142ea 100644
--- a/net/sched/cls_cgroup.c
+++ b/net/sched/cls_cgroup.c
@@ -32,6 +32,8 @@ static int cls_cgroup_classify(struct sk_buff *skb, const struct tcf_proto *tp,
32 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); 32 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root);
33 u32 classid = task_get_classid(skb); 33 u32 classid = task_get_classid(skb);
34 34
35 if (unlikely(!head))
36 return -1;
35 if (!classid) 37 if (!classid)
36 return -1; 38 return -1;
37 if (!tcf_em_tree_match(skb, &head->ematches, NULL)) 39 if (!tcf_em_tree_match(skb, &head->ematches, NULL))