diff options
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r-- | net/tipc/node.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 3777254a508f..0eb1bf850219 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -1885,9 +1885,9 @@ int tipc_nl_peer_rm(struct sk_buff *skb, struct genl_info *info) | |||
1885 | if (!info->attrs[TIPC_NLA_NET]) | 1885 | if (!info->attrs[TIPC_NLA_NET]) |
1886 | return -EINVAL; | 1886 | return -EINVAL; |
1887 | 1887 | ||
1888 | err = nla_parse_nested(attrs, TIPC_NLA_NET_MAX, | 1888 | err = nla_parse_nested_deprecated(attrs, TIPC_NLA_NET_MAX, |
1889 | info->attrs[TIPC_NLA_NET], tipc_nl_net_policy, | 1889 | info->attrs[TIPC_NLA_NET], |
1890 | info->extack); | 1890 | tipc_nl_net_policy, info->extack); |
1891 | if (err) | 1891 | if (err) |
1892 | return err; | 1892 | return err; |
1893 | 1893 | ||
@@ -2043,9 +2043,9 @@ int tipc_nl_node_set_link(struct sk_buff *skb, struct genl_info *info) | |||
2043 | if (!info->attrs[TIPC_NLA_LINK]) | 2043 | if (!info->attrs[TIPC_NLA_LINK]) |
2044 | return -EINVAL; | 2044 | return -EINVAL; |
2045 | 2045 | ||
2046 | err = nla_parse_nested(attrs, TIPC_NLA_LINK_MAX, | 2046 | err = nla_parse_nested_deprecated(attrs, TIPC_NLA_LINK_MAX, |
2047 | info->attrs[TIPC_NLA_LINK], | 2047 | info->attrs[TIPC_NLA_LINK], |
2048 | tipc_nl_link_policy, info->extack); | 2048 | tipc_nl_link_policy, info->extack); |
2049 | if (err) | 2049 | if (err) |
2050 | return err; | 2050 | return err; |
2051 | 2051 | ||
@@ -2119,9 +2119,9 @@ int tipc_nl_node_get_link(struct sk_buff *skb, struct genl_info *info) | |||
2119 | if (!info->attrs[TIPC_NLA_LINK]) | 2119 | if (!info->attrs[TIPC_NLA_LINK]) |
2120 | return -EINVAL; | 2120 | return -EINVAL; |
2121 | 2121 | ||
2122 | err = nla_parse_nested(attrs, TIPC_NLA_LINK_MAX, | 2122 | err = nla_parse_nested_deprecated(attrs, TIPC_NLA_LINK_MAX, |
2123 | info->attrs[TIPC_NLA_LINK], | 2123 | info->attrs[TIPC_NLA_LINK], |
2124 | tipc_nl_link_policy, info->extack); | 2124 | tipc_nl_link_policy, info->extack); |
2125 | if (err) | 2125 | if (err) |
2126 | return err; | 2126 | return err; |
2127 | 2127 | ||
@@ -2184,9 +2184,9 @@ int tipc_nl_node_reset_link_stats(struct sk_buff *skb, struct genl_info *info) | |||
2184 | if (!info->attrs[TIPC_NLA_LINK]) | 2184 | if (!info->attrs[TIPC_NLA_LINK]) |
2185 | return -EINVAL; | 2185 | return -EINVAL; |
2186 | 2186 | ||
2187 | err = nla_parse_nested(attrs, TIPC_NLA_LINK_MAX, | 2187 | err = nla_parse_nested_deprecated(attrs, TIPC_NLA_LINK_MAX, |
2188 | info->attrs[TIPC_NLA_LINK], | 2188 | info->attrs[TIPC_NLA_LINK], |
2189 | tipc_nl_link_policy, info->extack); | 2189 | tipc_nl_link_policy, info->extack); |
2190 | if (err) | 2190 | if (err) |
2191 | return err; | 2191 | return err; |
2192 | 2192 | ||
@@ -2324,9 +2324,10 @@ int tipc_nl_node_set_monitor(struct sk_buff *skb, struct genl_info *info) | |||
2324 | if (!info->attrs[TIPC_NLA_MON]) | 2324 | if (!info->attrs[TIPC_NLA_MON]) |
2325 | return -EINVAL; | 2325 | return -EINVAL; |
2326 | 2326 | ||
2327 | err = nla_parse_nested(attrs, TIPC_NLA_MON_MAX, | 2327 | err = nla_parse_nested_deprecated(attrs, TIPC_NLA_MON_MAX, |
2328 | info->attrs[TIPC_NLA_MON], | 2328 | info->attrs[TIPC_NLA_MON], |
2329 | tipc_nl_monitor_policy, info->extack); | 2329 | tipc_nl_monitor_policy, |
2330 | info->extack); | ||
2330 | if (err) | 2331 | if (err) |
2331 | return err; | 2332 | return err; |
2332 | 2333 | ||
@@ -2444,9 +2445,10 @@ int tipc_nl_node_dump_monitor_peer(struct sk_buff *skb, | |||
2444 | if (!attrs[TIPC_NLA_MON]) | 2445 | if (!attrs[TIPC_NLA_MON]) |
2445 | return -EINVAL; | 2446 | return -EINVAL; |
2446 | 2447 | ||
2447 | err = nla_parse_nested(mon, TIPC_NLA_MON_MAX, | 2448 | err = nla_parse_nested_deprecated(mon, TIPC_NLA_MON_MAX, |
2448 | attrs[TIPC_NLA_MON], | 2449 | attrs[TIPC_NLA_MON], |
2449 | tipc_nl_monitor_policy, NULL); | 2450 | tipc_nl_monitor_policy, |
2451 | NULL); | ||
2450 | if (err) | 2452 | if (err) |
2451 | return err; | 2453 | return err; |
2452 | 2454 | ||