summaryrefslogtreecommitdiffstats
path: root/kernel/net/sched/cls_bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/sched/cls_bpf.c')
-rw-r--r--kernel/net/sched/cls_bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/sched/cls_bpf.c b/kernel/net/sched/cls_bpf.c
index 91bd9c194..c0b86f2bf 100644
--- a/kernel/net/sched/cls_bpf.c
+++ b/kernel/net/sched/cls_bpf.c
@@ -364,7 +364,7 @@ static int cls_bpf_change(struct net *net, struct sk_buff *in_skb,
goto errout;
if (oldprog) {
- list_replace_rcu(&prog->link, &oldprog->link);
+ list_replace_rcu(&oldprog->link, &prog->link);
tcf_unbind_filter(tp, &oldprog->res);
call_rcu(&oldprog->rcu, __cls_bpf_delete_prog);
} else {