mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
net: sched: gred: pass extack to nla_parse_nested()
In case netlink wants to provide parsing error pass extack to nla_parse_nested(). Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: John Hurley <john.hurley@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
255f4803ec
commit
79c59fe01e
@ -406,7 +406,7 @@ static int gred_change(struct Qdisc *sch, struct nlattr *opt,
|
||||
if (opt == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy, NULL);
|
||||
err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy, extack);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
@ -476,7 +476,7 @@ static int gred_init(struct Qdisc *sch, struct nlattr *opt,
|
||||
if (!opt)
|
||||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy, NULL);
|
||||
err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy, extack);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user