diff options
-rw-r--r-- | net/tipc/netlink_compat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/netlink_compat.c b/net/tipc/netlink_compat.c index 21f6ccc89401..40f5cae623a7 100644 --- a/net/tipc/netlink_compat.c +++ b/net/tipc/netlink_compat.c | |||
@@ -904,6 +904,8 @@ static int tipc_nl_compat_publ_dump(struct tipc_nl_compat_msg *msg, u32 sock) | |||
904 | 904 | ||
905 | hdr = genlmsg_put(args, 0, 0, &tipc_genl_family, NLM_F_MULTI, | 905 | hdr = genlmsg_put(args, 0, 0, &tipc_genl_family, NLM_F_MULTI, |
906 | TIPC_NL_PUBL_GET); | 906 | TIPC_NL_PUBL_GET); |
907 | if (!hdr) | ||
908 | return -EMSGSIZE; | ||
907 | 909 | ||
908 | nest = nla_nest_start(args, TIPC_NLA_SOCK); | 910 | nest = nla_nest_start(args, TIPC_NLA_SOCK); |
909 | if (!nest) { | 911 | if (!nest) { |