hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/net/sched/sch_codel.c
....@@ -141,7 +141,8 @@
141141 if (!opt)
142142 return -EINVAL;
143143
144
- err = nla_parse_nested(tb, TCA_CODEL_MAX, opt, codel_policy, NULL);
144
+ err = nla_parse_nested_deprecated(tb, TCA_CODEL_MAX, opt,
145
+ codel_policy, NULL);
145146 if (err < 0)
146147 return err;
147148
....@@ -217,7 +218,7 @@
217218 struct codel_sched_data *q = qdisc_priv(sch);
218219 struct nlattr *opts;
219220
220
- opts = nla_nest_start(skb, TCA_OPTIONS);
221
+ opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
221222 if (opts == NULL)
222223 goto nla_put_failure;
223224