diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 1f236271766ca7988cc626ee34ee72f056d149cf..f38264db45ae058645bad642d07dc36245f77f51 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -2774,6 +2774,7 @@ static int tipc_sk_join(struct tipc_sock *tsk, struct tipc_group_req *mreq) if (rc) { tipc_group_delete(net, grp); tsk->group = NULL; + return rc; } /* Eliminate any risk that a broadcast overtakes sent JOINs */ tsk->mc_method.rcast = true;