diff options
author | Jan Kara <[email protected]> | 2014-12-10 15:41:56 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-12-10 17:41:03 -0800 |
commit | dc17158060fb57f49c310a7def12fdaeddf35b19 (patch) | |
tree | 1b1bdae0c2a15a4fe834e9d38c85adf6e10e8e6e /tools/perf/scripts/python | |
parent | 86b9c6f3f891019b26f8e5bb11a6faa96bba54a8 (diff) |
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 <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions