Commit b53ce3e7 authored by Insu Yun's avatar Insu Yun Committed by David S. Miller

tipc: unlock in error path

tipc_bcast_unlock need to be unlocked in error path.
Signed-off-by: default avatarInsu Yun <wuninsu@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 29d1441d
...@@ -1973,8 +1973,10 @@ int tipc_nl_add_bc_link(struct net *net, struct tipc_nl_msg *msg) ...@@ -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, hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
NLM_F_MULTI, TIPC_NL_LINK_GET); NLM_F_MULTI, TIPC_NL_LINK_GET);
if (!hdr) if (!hdr) {
tipc_bcast_unlock(net);
return -EMSGSIZE; return -EMSGSIZE;
}
attrs = nla_nest_start(msg->skb, TIPC_NLA_LINK); attrs = nla_nest_start(msg->skb, TIPC_NLA_LINK);
if (!attrs) if (!attrs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment