浏览代码

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

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Manish Katiyar 16 年之前
父节点
当前提交
f68301656b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/ext4/super.c

+ 1 - 0
fs/ext4/super.c

@@ -2924,6 +2924,7 @@ failed_mount:
 	brelse(bh);
 	brelse(bh);
 out_fail:
 out_fail:
 	sb->s_fs_info = NULL;
 	sb->s_fs_info = NULL;
+	kfree(sbi->s_blockgroup_lock);
 	kfree(sbi);
 	kfree(sbi);
 	lock_kernel();
 	lock_kernel();
 	return ret;
 	return ret;