X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=net%2Ftipc%2Fgroup.c;h=63f39201e41e699104d838f206d43f7f24806d3a;hp=06fee142f09fbea05a8b27bb240a4f3d3480b5b2;hb=d00afd5ede1c29a6dc59be2d7fb7d6ef28eb85c5;hpb=7c0bc65c84035cd2d7561ba47d7bad1cae62c4c3 diff --git a/net/tipc/group.c b/net/tipc/group.c index 06fee142f09f..63f39201e41e 100644 --- a/net/tipc/group.c +++ b/net/tipc/group.c @@ -919,6 +919,9 @@ int tipc_group_fill_sock_diag(struct tipc_group *grp, struct sk_buff *skb) { struct nlattr *group = nla_nest_start(skb, TIPC_NLA_SOCK_GROUP); + if (!group) + return -EMSGSIZE; + if (nla_put_u32(skb, TIPC_NLA_SOCK_GROUP_ID, grp->type) || nla_put_u32(skb, TIPC_NLA_SOCK_GROUP_INSTANCE,