On Sun, 2021-11-21 at 12:41 +0100, Lorenzo Bianconi wrote: > Check error code returned by nla_parse_nested in nl80211_set_sar_specs > routine before parsing SAR sub-specs. > I don't think we need to. The policy already states it: [NL80211_ATTR_SAR_SPEC] = NLA_POLICY_NESTED(sar_policy), Since we always parse the top-level already in the generic netlink code, it will recurse down here by way of that policy link, and then it will already be validated as much as nla_parse_nested() can do again - so we only do it again here to actually get access to the pointers. johannes