]> Git Repo - linux.git/blobdiff - net/tipc/net.c
netlink: make validation more configurable for future strictness
[linux.git] / net / tipc / net.c
index 7ce1e86b024f09cb7345840d4a4d8e3949c5107d..85707c185360ccc98478ff17070bddb4cdfd0641 100644 (file)
@@ -187,7 +187,7 @@ static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg)
        if (!hdr)
                return -EMSGSIZE;
 
-       attrs = nla_nest_start(msg->skb, TIPC_NLA_NET);
+       attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET);
        if (!attrs)
                goto msg_full;
 
@@ -245,9 +245,9 @@ int __tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info)
        if (!info->attrs[TIPC_NLA_NET])
                return -EINVAL;
 
-       err = nla_parse_nested(attrs, TIPC_NLA_NET_MAX,
-                              info->attrs[TIPC_NLA_NET], tipc_nl_net_policy,
-                              info->extack);
+       err = nla_parse_nested_deprecated(attrs, TIPC_NLA_NET_MAX,
+                                         info->attrs[TIPC_NLA_NET],
+                                         tipc_nl_net_policy, info->extack);
 
        if (err)
                return err;
This page took 0.03312 seconds and 4 git commands to generate.