diff options
Diffstat (limited to 'net/tipc/netlink_compat.c')
-rw-r--r-- | net/tipc/netlink_compat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/tipc/netlink_compat.c b/net/tipc/netlink_compat.c index 6376467e78f8..21f6ccc89401 100644 --- a/net/tipc/netlink_compat.c +++ b/net/tipc/netlink_compat.c | |||
@@ -951,8 +951,11 @@ static int tipc_nl_compat_sk_dump(struct tipc_nl_compat_msg *msg, | |||
951 | u32 node; | 951 | u32 node; |
952 | struct nlattr *con[TIPC_NLA_CON_MAX + 1]; | 952 | struct nlattr *con[TIPC_NLA_CON_MAX + 1]; |
953 | 953 | ||
954 | nla_parse_nested(con, TIPC_NLA_CON_MAX, | 954 | err = nla_parse_nested(con, TIPC_NLA_CON_MAX, |
955 | sock[TIPC_NLA_SOCK_CON], NULL, NULL); | 955 | sock[TIPC_NLA_SOCK_CON], NULL, NULL); |
956 | |||
957 | if (err) | ||
958 | return err; | ||
956 | 959 | ||
957 | node = nla_get_u32(con[TIPC_NLA_CON_NODE]); | 960 | node = nla_get_u32(con[TIPC_NLA_CON_NODE]); |
958 | tipc_tlv_sprintf(msg->rep, " connected to <%u.%u.%u:%u>", | 961 | tipc_tlv_sprintf(msg->rep, " connected to <%u.%u.%u:%u>", |