commit | f8201abcb2badce7eaa6a3715f9a228cfd88a453 | [log] [tgz] |
---|---|---|
author | Ingo Molnar <mingo@elte.hu> | Tue Apr 07 14:16:50 2009 +0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Apr 07 07:39:59 2009 -0700 |
tree | b635d8ad39ada141b06884e91ad7de41c44a2f0e | |
parent | 4ef4327b30957a16619ac7d47c749465e62de8c3 [diff] |
ramfs: fix double freeing s_fs_info on failed mount If ramfs mount fails, s_fs_info will be freed twice in ramfs_fill_super() and ramfs_kill_sb(), leading to kernel oops. Consolidate and beautify the code. Make sure s_fs_info and s_root are in known good states. Acked-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>