OSDN Git Service

ocfs2: fix error handling when creating debugfs root in ocfs2_init()
[android-x86/kernel.git] / fs / ocfs2 / super.c
index 93c85bc..8e3ac25 100644 (file)
@@ -1622,8 +1622,9 @@ static int __init ocfs2_init(void)
 
        ocfs2_debugfs_root = debugfs_create_dir("ocfs2", NULL);
        if (!ocfs2_debugfs_root) {
-               status = -EFAULT;
+               status = -ENOMEM;
                mlog(ML_ERROR, "Unable to create ocfs2 debugfs root.\n");
+               goto out4;
        }
 
        ocfs2_set_locking_protocol();