From: Akinobu Mita <akinobu.mita@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Mark Fasheh <mark.fasheh@oracle.com>,
Kurt Hackel <kurt.hackel@oracle.com>
Subject: [PATCH] ocfs2_nodemanager: check o2net_init() error
Date: Sun, 4 Mar 2007 22:37:10 +0900 [thread overview]
Message-ID: <20070304133710.GB8519@APFDCB5C> (raw)
From: Akinobu Mita <akinobu.mita@gmail.com>
Subject: [PATCH] ocfs2_nodemanager: check o2net_init() error
Check o2net_init() return value in ocfs2_nodemanager module_init().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Cc: Kurt Hackel <kurt.hackel@oracle.com>
---
fs/ocfs2/cluster/nodemanager.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
Index: 2.6-mm/fs/ocfs2/cluster/nodemanager.c
===================================================================
--- 2.6-mm.orig/fs/ocfs2/cluster/nodemanager.c
+++ 2.6-mm/fs/ocfs2/cluster/nodemanager.c
@@ -915,12 +915,15 @@ static void __exit exit_o2nm(void)
static int __init init_o2nm(void)
{
- int ret = -1;
+ int ret;
cluster_print_version();
o2hb_init();
- o2net_init();
+
+ ret = o2net_init();
+ if (ret)
+ goto out;
ocfs2_table_header = register_sysctl_table(ocfs2_root_table);
if (!ocfs2_table_header) {
reply other threads:[~2007-03-04 13:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070304133710.GB8519@APFDCB5C \
--to=akinobu.mita@gmail.com \
--cc=kurt.hackel@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.fasheh@oracle.com \
/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®