From: "Xue, Ying" <Ying.Xue@windriver.com>
To: Insu Yun <wuninsu@gmail.com>,
"jon.maloy@ericsson.com" <jon.maloy@ericsson.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"tipc-discussion@lists.sourceforge.net"
<tipc-discussion@lists.sourceforge.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: "taesoo@gatech.edu" <taesoo@gatech.edu>,
"yeongjin.jang@gatech.edu" <yeongjin.jang@gatech.edu>,
"insu@gatech.edu" <insu@gatech.edu>,
"changwoo@gatech.edu" <changwoo@gatech.edu>
Subject: RE: [PATCH] tipc: unlock in error path
Date: Thu, 18 Feb 2016 13:12:46 +0000 [thread overview]
Message-ID: <25A14D9CFAB7B34FB9440F90AFD35233DD0AF10E@ALA-MBB.corp.ad.wrs.com> (raw)
In-Reply-To: <1455727655-32106-1-git-send-email-wuninsu@gmail.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
-----Original Message-----
From: Insu Yun [mailto:wuninsu@gmail.com]
Sent: 2016年2月18日 0:48
To: jon.maloy@ericsson.com; Xue, Ying; davem@davemloft.net; netdev@vger.kernel.org; tipc-discussion@lists.sourceforge.net; linux-kernel@vger.kernel.org
Cc: taesoo@gatech.edu; yeongjin.jang@gatech.edu; insu@gatech.edu; changwoo@gatech.edu; Insu Yun
Subject: [PATCH] tipc: unlock in error path
tipc_bcast_unlock need to be unlocked in error path.
Signed-off-by: Insu Yun <wuninsu@gmail.com>
---
net/tipc/link.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/tipc/link.c b/net/tipc/link.c index 0c2944f..347cdc9 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)
--
1.9.1
next prev parent reply other threads:[~2016-02-18 13:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 16:47 Insu Yun
2016-02-18 13:12 ` Xue, Ying [this message]
2016-02-19 20:40 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25A14D9CFAB7B34FB9440F90AFD35233DD0AF10E@ALA-MBB.corp.ad.wrs.com \
--to=ying.xue@windriver.com \
--cc=changwoo@gatech.edu \
--cc=davem@davemloft.net \
--cc=insu@gatech.edu \
--cc=jon.maloy@ericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=taesoo@gatech.edu \
--cc=tipc-discussion@lists.sourceforge.net \
--cc=wuninsu@gmail.com \
--cc=yeongjin.jang@gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®