Commit 3d7aa86c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ext3: fix error-path memory leak

Fix an error-path memory leak in ext3_fill_super().
parent dacb711c
...@@ -1154,7 +1154,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent) ...@@ -1154,7 +1154,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
if (!bh) { if (!bh) {
printk(KERN_ERR printk(KERN_ERR
"EXT3-fs: Can't read superblock on 2nd try.\n"); "EXT3-fs: Can't read superblock on 2nd try.\n");
return -EINVAL; goto failed_mount;
} }
es = (struct ext3_super_block *)(((char *)bh->b_data) + offset); es = (struct ext3_super_block *)(((char *)bh->b_data) + offset);
sbi->s_es = es; sbi->s_es = es;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment