提交 f6830165 编写于 作者: M Manish Katiyar 提交者: Theodore Ts'o

ext4: Fix memory leak in ext4_fill_super() in case of a failed mount

Signed-off-by: NManish Katiyar <mkatiyar@gmail.com>
Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
上级 0568c518
......@@ -2924,6 +2924,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
brelse(bh);
out_fail:
sb->s_fs_info = NULL;
kfree(sbi->s_blockgroup_lock);
kfree(sbi);
lock_kernel();
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册