[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20070304133710.GB8519@APFDCB5C>
Date: Sun, 4 Mar 2007 22:37:10 +0900
From: Akinobu Mita <akinobu.mita@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Mark Fasheh <mark.fasheh@...cle.com>,
Kurt Hackel <kurt.hackel@...cle.com>
Subject: [PATCH] ocfs2_nodemanager: check o2net_init() error
From: Akinobu Mita <akinobu.mita@...il.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@...il.com>
Cc: Mark Fasheh <mark.fasheh@...cle.com>
Cc: Kurt Hackel <kurt.hackel@...cle.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) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists