diff options
author | 2019-04-08 13:03:09 +0200 | |
---|---|---|
committer | 2019-04-08 13:03:09 +0200 | |
commit | 26af34079f1d8299932303cfd2b376b9cf55a35c (patch) | |
tree | f1a9824855fae569aa51c2109a5929715143093d /net/tipc/group.c | |
parent | gpio: mmio: Drop bgpio_dir_inverted (diff) | |
parent | Linux 5.1-rc3 (diff) | |
download | wireguard-linux-26af34079f1d8299932303cfd2b376b9cf55a35c.tar.xz wireguard-linux-26af34079f1d8299932303cfd2b376b9cf55a35c.zip |
Merge tag 'v5.1-rc3' into devel
Linux 5.1-rc3
Diffstat (limited to '')
-rw-r--r-- | net/tipc/group.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, |