projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d1441
)
tipc: unlock in error path
author
Insu Yun
<wuninsu@gmail.com>
Wed, 17 Feb 2016 16:47:35 +0000
(11:47 -0500)
committer
David S. Miller
<davem@davemloft.net>
Fri, 19 Feb 2016 20:38:44 +0000
(15:38 -0500)
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>
net/tipc/link.c
patch
|
blob
|
blame
|
history
diff --git
a/net/tipc/link.c
b/net/tipc/link.c
index 0c2944fb9ae0d34ca8e153d9412c5896b47ffacf..347cdc99ed094ab8326071b69958296641576198 100644
(file)
--- 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)