From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH 5/7] netlink: prepare validate extack setting for recursion Date: Wed, 19 Sep 2018 09:28:57 -0700 Message-ID: <18ea5293-5a12-7aca-7373-12d1ab3a0821@gmail.com> References: <20180919120900.28708-1-johannes@sipsolutions.net> <20180919120900.28708-6-johannes@sipsolutions.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Johannes Berg To: Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Return-path: Received: from mail-pl1-f196.google.com ([209.85.214.196]:43277 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731233AbeISWHj (ORCPT ); Wed, 19 Sep 2018 18:07:39 -0400 In-Reply-To: <20180919120900.28708-6-johannes@sipsolutions.net> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 9/19/18 5:08 AM, Johannes Berg wrote: > diff --git a/lib/nlattr.c b/lib/nlattr.c > index 966cd3dcf31b..2b015e43b725 100644 > --- a/lib/nlattr.c > +++ b/lib/nlattr.c > @@ -69,7 +69,7 @@ static int validate_nla_bitfield32(const struct nlattr *nla, > > static int validate_nla(const struct nlattr *nla, int maxtype, > const struct nla_policy *policy, > - const char **error_msg) > + struct netlink_ext_ack *extack, bool *extack_set) extack_set arg is not needed if you handle the "Attribute failed policy validation" message and NL_SET_BAD_ATTR here as well.