diff options
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/udp_media.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/udp_media.c b/net/tipc/udp_media.c index dd274687a53d..d80cd3f7503f 100644 --- a/net/tipc/udp_media.c +++ b/net/tipc/udp_media.c | |||
@@ -665,7 +665,8 @@ static int tipc_udp_enable(struct net *net, struct tipc_bearer *b, | |||
665 | 665 | ||
666 | if (!opts[TIPC_NLA_UDP_LOCAL] || !opts[TIPC_NLA_UDP_REMOTE]) { | 666 | if (!opts[TIPC_NLA_UDP_LOCAL] || !opts[TIPC_NLA_UDP_REMOTE]) { |
667 | pr_err("Invalid UDP bearer configuration"); | 667 | pr_err("Invalid UDP bearer configuration"); |
668 | return -EINVAL; | 668 | err = -EINVAL; |
669 | goto err; | ||
669 | } | 670 | } |
670 | 671 | ||
671 | err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_LOCAL], &local, | 672 | err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_LOCAL], &local, |