Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 895928b8 authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Mark Fasheh
Browse files

[PATCH] ocfs2: complete failure recovery for nodemanager init



 This patch finishes cleaning up the node manager allocations if it fails
 to initialize.

Signed-off-by: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 362342f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -756,7 +756,7 @@ static int __init init_o2nm(void)
	if (!ocfs2_table_header) {
		printk(KERN_ERR "nodemanager: unable to register sysctl\n");
		ret = -ENOMEM; /* or something. */
		goto out;
		goto out_o2net;
	}

	ret = o2net_register_hb_callbacks();
@@ -780,6 +780,8 @@ out_callbacks:
	o2net_unregister_hb_callbacks();
out_sysctl:
	unregister_sysctl_table(ocfs2_table_header);
out_o2net:
	o2net_exit();
out:
	return ret;
}