diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-11-14 22:23:46 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-16 23:08:51 -0800 |
commit | 79c59fe01e70f595f0d67be76ae8309a32a3760d (patch) | |
tree | 56ea7163bbe4db38f9269820f8399a663acf8191 /net/sched | |
parent | 255f4803ecc490319596d73f24ed775f99923a53 (diff) | |
download | linux-stable-79c59fe01e70f595f0d67be76ae8309a32a3760d.tar.gz linux-stable-79c59fe01e70f595f0d67be76ae8309a32a3760d.tar.bz2 linux-stable-79c59fe01e70f595f0d67be76ae8309a32a3760d.zip |
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>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_gred.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c index 22110be9d285..9f6a4ddd262a 100644 --- a/net/sched/sch_gred.c +++ b/net/sched/sch_gred.c @@ -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; |