hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/net/tipc/group.c
....@@ -542,7 +542,7 @@
542542 update = true;
543543 deliver = false;
544544 }
545
- /* Fall thru */
545
+ fallthrough;
546546 case TIPC_GRP_BCAST_MSG:
547547 m->bc_rcv_nxt++;
548548 ack = msg_grp_bc_ack_req(hdr);
....@@ -924,7 +924,10 @@
924924
925925 int tipc_group_fill_sock_diag(struct tipc_group *grp, struct sk_buff *skb)
926926 {
927
- struct nlattr *group = nla_nest_start(skb, TIPC_NLA_SOCK_GROUP);
927
+ struct nlattr *group = nla_nest_start_noflag(skb, TIPC_NLA_SOCK_GROUP);
928
+
929
+ if (!group)
930
+ return -EMSGSIZE;
928931
929932 if (nla_put_u32(skb, TIPC_NLA_SOCK_GROUP_ID,
930933 grp->type) ||