From: Akinobu Mita <[EMAIL PROTECTED]>
Subject: [PATCH] ocfs2_nodemanager: check o2net_init() error

Check o2net_init() return value in ocfs2_nodemanager module_init().

Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]>
Cc: Mark Fasheh <[EMAIL PROTECTED]>
Cc: Kurt Hackel <[EMAIL PROTECTED]>
---
 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to