From: Ingo Molnar Date: Tue, 7 Apr 2009 06:16:50 +0000 (+0800) Subject: ramfs: fix double freeing s_fs_info on failed mount X-Git-Tag: v2.6.30-rc1~135 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8201abcb2badce7eaa6a3715f9a228cfd88a453;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed