diff options
Diffstat (limited to 'net/tipc/udp_media.c')
-rw-r--r-- | net/tipc/udp_media.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/tipc/udp_media.c b/net/tipc/udp_media.c index 46061cf48cd1..ecca64fc6a6f 100644 --- a/net/tipc/udp_media.c +++ b/net/tipc/udp_media.c | |||
@@ -457,7 +457,7 @@ int tipc_udp_nl_dump_remoteip(struct sk_buff *skb, struct netlink_callback *cb) | |||
457 | 457 | ||
458 | err = nla_parse_nested(battrs, TIPC_NLA_BEARER_MAX, | 458 | err = nla_parse_nested(battrs, TIPC_NLA_BEARER_MAX, |
459 | attrs[TIPC_NLA_BEARER], | 459 | attrs[TIPC_NLA_BEARER], |
460 | tipc_nl_bearer_policy); | 460 | tipc_nl_bearer_policy, NULL); |
461 | if (err) | 461 | if (err) |
462 | return err; | 462 | return err; |
463 | 463 | ||
@@ -609,7 +609,8 @@ int tipc_udp_nl_bearer_add(struct tipc_bearer *b, struct nlattr *attr) | |||
609 | struct nlattr *opts[TIPC_NLA_UDP_MAX + 1]; | 609 | struct nlattr *opts[TIPC_NLA_UDP_MAX + 1]; |
610 | struct udp_media_addr *dst; | 610 | struct udp_media_addr *dst; |
611 | 611 | ||
612 | if (nla_parse_nested(opts, TIPC_NLA_UDP_MAX, attr, tipc_nl_udp_policy)) | 612 | if (nla_parse_nested(opts, TIPC_NLA_UDP_MAX, attr, |
613 | tipc_nl_udp_policy, NULL)) | ||
613 | return -EINVAL; | 614 | return -EINVAL; |
614 | 615 | ||
615 | if (!opts[TIPC_NLA_UDP_REMOTE]) | 616 | if (!opts[TIPC_NLA_UDP_REMOTE]) |
@@ -662,7 +663,7 @@ static int tipc_udp_enable(struct net *net, struct tipc_bearer *b, | |||
662 | 663 | ||
663 | if (nla_parse_nested(opts, TIPC_NLA_UDP_MAX, | 664 | if (nla_parse_nested(opts, TIPC_NLA_UDP_MAX, |
664 | attrs[TIPC_NLA_BEARER_UDP_OPTS], | 665 | attrs[TIPC_NLA_BEARER_UDP_OPTS], |
665 | tipc_nl_udp_policy)) | 666 | tipc_nl_udp_policy, NULL)) |
666 | goto err; | 667 | goto err; |
667 | 668 | ||
668 | if (!opts[TIPC_NLA_UDP_LOCAL] || !opts[TIPC_NLA_UDP_REMOTE]) { | 669 | if (!opts[TIPC_NLA_UDP_LOCAL] || !opts[TIPC_NLA_UDP_REMOTE]) { |