mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ocfs2_nodemanager: check o2net_init() error
@ 2007-03-04 13:37 Akinobu Mita
  0 siblings, 0 replies; only message in thread
From: Akinobu Mita @ 2007-03-04 13:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mark Fasheh, Kurt Hackel

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) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-04 13:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-04 13:37 [PATCH] ocfs2_nodemanager: check o2net_init() error Akinobu Mita

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®