diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 93c85bc745e199983550b2e181b757e151cec8d5..8e3ac25efb9fc1384a0cb4abb8b6b1a5cfdeb992 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -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();