diff options
Diffstat (limited to 'kernel/net/sched/cls_bpf.c')
-rw-r--r-- | kernel/net/sched/cls_bpf.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/net/sched/cls_bpf.c b/kernel/net/sched/cls_bpf.c index 5faaa5425..3eef0215e 100644 --- a/kernel/net/sched/cls_bpf.c +++ b/kernel/net/sched/cls_bpf.c @@ -199,7 +199,6 @@ static bool cls_bpf_destroy(struct tcf_proto *tp, bool force) call_rcu(&prog->rcu, __cls_bpf_delete_prog); } - RCU_INIT_POINTER(tp->root, NULL); kfree_rcu(head, rcu); return true; } @@ -210,9 +209,6 @@ static unsigned long cls_bpf_get(struct tcf_proto *tp, u32 handle) struct cls_bpf_prog *prog; unsigned long ret = 0UL; - if (head == NULL) - return 0UL; - list_for_each_entry(prog, &head->plist, link) { if (prog->handle == handle) { ret = (unsigned long) prog; |