diff options
Diffstat (limited to 'net/sched/cls_cgroup.c')
-rw-r--r-- | net/sched/cls_cgroup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 53ada2c0e41c..0d68b1975983 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c | |||
@@ -201,9 +201,7 @@ static int cls_cgroup_change(struct tcf_proto *tp, unsigned long base, | |||
201 | 201 | ||
202 | static void cls_cgroup_destroy(struct tcf_proto *tp) | 202 | static void cls_cgroup_destroy(struct tcf_proto *tp) |
203 | { | 203 | { |
204 | struct cls_cgroup_head *head; | 204 | struct cls_cgroup_head *head = tp->root; |
205 | |||
206 | head = (struct cls_cgroup_head *)xchg(&tp->root, NULL); | ||
207 | 205 | ||
208 | if (head) { | 206 | if (head) { |
209 | tcf_exts_destroy(tp, &head->exts); | 207 | tcf_exts_destroy(tp, &head->exts); |