mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00: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…
x
Reference in New Issue
Block a user