diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-03-12 16:59:13 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-04-19 17:52:43 +0200 |
commit | f1708ac5643a1decf36ca92ba0644397df5da1f9 (patch) | |
tree | 19dfc83b622028394ae3a7ec899b21f1f6d3a8d7 | |
parent | e26f1313619084dfd81be46ca209ca38d053161f (diff) | |
download | backports-f1708ac5643a1decf36ca92ba0644397df5da1f9.tar.gz |
backports: netlink: fix nla_validate_nested()
I had accidentally named this nl80211_validate_nested(),
and it got renamed in 5.6.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | backport/backport-include/net/netlink.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backport/backport-include/net/netlink.h b/backport/backport-include/net/netlink.h index b2045e44..082ac4d0 100644 --- a/backport/backport-include/net/netlink.h +++ b/backport/backport-include/net/netlink.h @@ -266,17 +266,17 @@ nla_validate_nested_deprecated(const struct nlattr *start, int maxtype, } #endif /* < 5.2 */ -#if LINUX_VERSION_IS_LESS(5,3,0) -#define nl80211_validate_nested LINUX_BACKPORT(nl80211_validate_nested) +#if LINUX_VERSION_IS_LESS(5,6,0) +#define nla_validate_nested LINUX_BACKPORT(nla_validate_nested) static inline int -nl80211_validate_nested(const struct nlattr *start, int maxtype, - const struct nla_policy *policy, - struct netlink_ext_ack *extack) +nla_validate_nested(const struct nlattr *start, int maxtype, + const struct nla_policy *policy, + struct netlink_ext_ack *extack) { return __nla_validate_nested(start, maxtype, policy, NL_VALIDATE_STRICT, extack); } -#endif /* < 5.3 */ +#endif /* < 5.6 */ #if LINUX_VERSION_IS_LESS(5,1,0) #undef NLA_POLICY_NESTED |