Jan Kara dc17158060 ocfs2: fix error handling when creating debugfs root in ocfs2_init()
Error handling if creation of root of debugfs in ocfs2_init() fails is
broken.  Although error code is set we fail to exit ocfs2_init() with
error and thus initialization ends with success.  Later when mounting a
filesystem, ocfs2 debugfs entries end up being created in the root of
debugfs filesystem which is confusing.

Fix the error handling to bail out.

Coverity id: 1227009.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-12-10 17:41:03 -08:00
..
2014-12-10 17:41:03 -08:00
2013-06-29 12:57:02 +04:00
2011-07-25 14:58:15 -07:00
2008-10-13 13:57:57 -07:00
2014-01-21 16:19:41 -08:00
2013-02-26 02:46:10 -05:00
2014-09-17 11:59:12 +02:00
2014-09-17 11:59:12 +02:00
2011-03-31 11:26:23 -03:00
2012-05-29 23:28:40 -04:00