aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-12-24 16:19:56 -0800
committerDavid S. Miller <davem@davemloft.net>2018-12-24 16:19:56 -0800
commit90cadbbf341dd5b2df991c33a6bd6341f3a53788 (patch)
tree306a7e88725865b7310fa5b0962336f98a8214fe /net/tipc
parentnet: dccp: fix kernel crash on module load (diff)
parentbnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw (diff)
downloadlinux-dev-90cadbbf341dd5b2df991c33a6bd6341f3a53788.tar.xz
linux-dev-90cadbbf341dd5b2df991c33a6bd6341f3a53788.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull in bug fixes before respinning my net-next pull request. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/netlink_compat.c7
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,
u32 node;
struct nlattr *con[TIPC_NLA_CON_MAX + 1];
- nla_parse_nested(con, TIPC_NLA_CON_MAX,
- sock[TIPC_NLA_SOCK_CON], NULL, NULL);
+ err = nla_parse_nested(con, TIPC_NLA_CON_MAX,
+ sock[TIPC_NLA_SOCK_CON], NULL, NULL);
+
+ if (err)
+ return err;
node = nla_get_u32(con[TIPC_NLA_CON_NODE]);
tipc_tlv_sprintf(msg->rep, " connected to <%u.%u.%u:%u>",