[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1536741492.3678.9.camel@sipsolutions.net>
Date: Wed, 12 Sep 2018 10:38:12 +0200
From: Johannes Berg <johannes@...solutions.net>
To: linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Cc: Michal Kubecek <mkubecek@...e.cz>
Subject: Re: [RFC v2 1/2] netlink: add NLA_REJECT policy type
On Wed, 2018-09-12 at 10:36 +0200, Johannes Berg wrote:
> @@ -251,7 +257,7 @@ int nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
>
> if (type > 0 && type <= maxtype) {
> if (policy) {
> - err = validate_nla(nla, maxtype, policy);
> + err = validate_nla(nla, maxtype, policy, extack);
> if (err < 0) {
> NL_SET_ERR_MSG_ATTR(extack, nla,
> "Attribute failed policy validation");
Err... I should read my patches before sending them :-)
Clearly, this NL_SET_ERR_MSG_ATTR() overwrites the error message, so
would have to be made conditional.
I can fix that (and I should use/test it) if we decide it's worthwhile.
johannes
Powered by blists - more mailing lists