diff options
Diffstat (limited to 'net/sched/cls_basic.c')
-rw-r--r-- | net/sched/cls_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index 956915c217d6..4e2bda854119 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c | |||
@@ -102,7 +102,7 @@ static inline void basic_delete_filter(struct tcf_proto *tp, | |||
102 | 102 | ||
103 | static void basic_destroy(struct tcf_proto *tp) | 103 | static void basic_destroy(struct tcf_proto *tp) |
104 | { | 104 | { |
105 | struct basic_head *head = (struct basic_head *) xchg(&tp->root, NULL); | 105 | struct basic_head *head = tp->root; |
106 | struct basic_filter *f, *n; | 106 | struct basic_filter *f, *n; |
107 | 107 | ||
108 | list_for_each_entry_safe(f, n, &head->flist, link) { | 108 | list_for_each_entry_safe(f, n, &head->flist, link) { |