diff options
Diffstat (limited to 'net/sched/cls_bpf.c')
-rw-r--r-- | net/sched/cls_bpf.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/sched/cls_bpf.c b/net/sched/cls_bpf.c index 28cb5fa5af92..c37aa8b77fb5 100644 --- a/net/sched/cls_bpf.c +++ b/net/sched/cls_bpf.c | |||
@@ -289,7 +289,6 @@ static bool cls_bpf_destroy(struct tcf_proto *tp, bool force) | |||
289 | call_rcu(&prog->rcu, __cls_bpf_delete_prog); | 289 | call_rcu(&prog->rcu, __cls_bpf_delete_prog); |
290 | } | 290 | } |
291 | 291 | ||
292 | RCU_INIT_POINTER(tp->root, NULL); | ||
293 | kfree_rcu(head, rcu); | 292 | kfree_rcu(head, rcu); |
294 | return true; | 293 | return true; |
295 | } | 294 | } |
@@ -300,9 +299,6 @@ static unsigned long cls_bpf_get(struct tcf_proto *tp, u32 handle) | |||
300 | struct cls_bpf_prog *prog; | 299 | struct cls_bpf_prog *prog; |
301 | unsigned long ret = 0UL; | 300 | unsigned long ret = 0UL; |
302 | 301 | ||
303 | if (head == NULL) | ||
304 | return 0UL; | ||
305 | |||
306 | list_for_each_entry(prog, &head->plist, link) { | 302 | list_for_each_entry(prog, &head->plist, link) { |
307 | if (prog->handle == handle) { | 303 | if (prog->handle == handle) { |
308 | ret = (unsigned long) prog; | 304 | ret = (unsigned long) prog; |