]> Git Repo - linux.git/commit - fs/ramfs/inode.c
ramfs: fix double freeing s_fs_info on failed mount
authorIngo Molnar <[email protected]>
Tue, 7 Apr 2009 06:16:50 +0000 (14:16 +0800)
committerLinus Torvalds <[email protected]>
Tue, 7 Apr 2009 14:39:59 +0000 (07:39 -0700)
commitf8201abcb2badce7eaa6a3715f9a228cfd88a453
treeb635d8ad39ada141b06884e91ad7de41c44a2f0e
parent4ef4327b30957a16619ac7d47c749465e62de8c3
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ramfs/inode.c
This page took 0.053541 seconds and 4 git commands to generate.