[PATCH] ocfs2_nodemanager: check o2net_init() error

From: Akinobu Mita
Date: Sun Mar 04 2007 - 08:41:25 EST


From: Akinobu Mita <akinobu.mita@xxxxxxxxx>
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@xxxxxxxxx>
Cc: Mark Fasheh <mark.fasheh@xxxxxxxxxx>
Cc: Kurt Hackel <kurt.hackel@xxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/