mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
tipc: unlock in error path
[ Upstream commit b53ce3e7d4 ]
tipc_bcast_unlock need to be unlocked in error path.
Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b7c2e2acc6
commit
4ac39c3e2c
|
|
@ -399,8 +399,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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user