Skip to content

Commit

Permalink
tipc: unlock in error path
Browse files Browse the repository at this point in the history
tipc_bcast_unlock need to be unlocked in error path.

Signed-off-by: Insu Yun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
insuyun authored and davem330 committed Feb 19, 2016
1 parent 29d1441 commit b53ce3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/tipc/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -1973,8 +1973,10 @@ int tipc_nl_add_bc_link(struct net *net, struct tipc_nl_msg *msg)

hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
NLM_F_MULTI, TIPC_NL_LINK_GET);
if (!hdr)
if (!hdr) {
tipc_bcast_unlock(net);
return -EMSGSIZE;
}

attrs = nla_nest_start(msg->skb, TIPC_NLA_LINK);
if (!attrs)
Expand Down

0 comments on commit b53ce3e

Please sign in to comment.