Commit 5301e3e1 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

net_sched: copy exts->type in tcf_exts_change()

We need to copy exts->type when committing the change, otherwise
it would be always 0. This is a quick fix for -net and -stable,
for net-next tcf_exts will be removed.

Fixes: commit 33be6271

 ("net_sched: act: use standard struct list_head")
Reported-by: default avatarJamal Hadi Salim <>
Cc: Jamal Hadi Salim <>
Cc: John Fastabend <>
Signed-off-by: default avatarCong Wang <>
Acked-by: default avatarJamal Hadi Salim <>
Signed-off-by: default avatarDavid S. Miller <>
parent c3a803e8
......@@ -549,6 +549,7 @@ void tcf_exts_change(struct tcf_proto *tp, struct tcf_exts *dst,
list_splice_init(&dst->actions, &tmp);
list_splice(&src->actions, &dst->actions);
dst->type = src->type;
tcf_action_destroy(&tmp, TCA_ACT_UNBIND);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment