aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-10-24 08:40:01 -0400
committerDavid S. Miller <davem@davemloft.net>2016-10-27 16:16:08 -0400
commitc90c39dab3e02ce45427a214746711f33ad13be6 (patch)
treebfd0b747bc412fbe73ea68518df15d149ce8333a /net/tipc
parent4fe77d82ef80c77031c9c6f8554cd0dee2aa423a (diff)
genetlink: introduce and use genl_family_attrbuf()
This helper function allows family implementations to access their family's attrbuf. This gets rid of the attrbuf usage in families, and also adds locking validation, since it's not valid to use the attrbuf with parallel_ops or outside of the dumpit callback. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c
index 3200059d14b2..4b94f3cfe3af 100644
--- a/net/tipc/netlink.c
+++ b/net/tipc/netlink.c
@@ -262,7 +262,7 @@ int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***attr)
262{ 262{
263 u32 maxattr = tipc_genl_family.maxattr; 263 u32 maxattr = tipc_genl_family.maxattr;
264 264
265 *attr = tipc_genl_family.attrbuf; 265 *attr = genl_family_attrbuf(&tipc_genl_family);
266 if (!*attr) 266 if (!*attr)
267 return -EOPNOTSUPP; 267 return -EOPNOTSUPP;
268 268