ext4: fix missing iput of root inode for some mount error paths
authorManish Katiyar <mkatiyar@gmail.com>
Mon, 28 Feb 2011 01:42:06 +0000 (20:42 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Feb 2011 01:42:06 +0000 (20:42 -0500)
commit32a9bb57d7c1fd04ae0f72b8f671501f000a0e9f
tree9bab50282f4d17a9710df599170662bda8a9a61d
parent6d9c85eb700bd3ac59e63bb9de463dea1aca084c
ext4: fix missing iput of root inode for some mount error paths

This assures that the root inode is not leaked, and that sb->s_root is
NULL, which will prevent generic_shutdown_super() from doing extra
work, including call sync_filesystem, which ultimately results in
ext4_sync_fs() getting called with an uninitialized struct super,
which is the cause of the crash noted in Kernel Bugzilla #26752.

https://bugzilla.kernel.org/show_bug.cgi?id=26752

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c