diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-07 08:16:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 16:39:59 +0200 |
commit | f8201abcb2badce7eaa6a3715f9a228cfd88a453 (patch) | |
tree | b635d8ad39ada141b06884e91ad7de41c44a2f0e /arch/powerpc/kernel/ptrace32.c | |
parent | Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mch... (diff) | |
download | linux-f8201abcb2badce7eaa6a3715f9a228cfd88a453.tar.xz linux-f8201abcb2badce7eaa6a3715f9a228cfd88a453.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/ptrace32.c')
0 files changed, 0 insertions, 0 deletions