diff options
author | Insu Yun <wuninsu@gmail.com> | 2016-02-17 17:47:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-19 21:38:44 +0100 |
commit | b53ce3e7d407aa4196877a48b8601181162ab158 (patch) | |
tree | d0a55ac11605edb07e649f52139bd23aea1a3ee7 | |
parent | Merge tag 'batman-adv-fix-for-davem' of git://git.open-mesh.org/linux-merge (diff) | |
download | linux-b53ce3e7d407aa4196877a48b8601181162ab158.tar.xz linux-b53ce3e7d407aa4196877a48b8601181162ab158.zip |
tipc: unlock in error path
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>
-rw-r--r-- | net/tipc/link.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index 0c2944fb9ae0..347cdc99ed09 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c @@ -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) |