Commit 0f7ee7c1 authored by Manish Katiyar's avatar Manish Katiyar Committed by Theodore Ts'o

ext2: Fix memory leak in ext2_fill_super() in case of a failed mount

Signed-off-by: default avatarManish Katiyar <mkatiyar@gmail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent de5ce037
...@@ -1093,6 +1093,7 @@ failed_mount: ...@@ -1093,6 +1093,7 @@ failed_mount:
brelse(bh); brelse(bh);
failed_sbi: failed_sbi:
sb->s_fs_info = NULL; sb->s_fs_info = NULL;
kfree(sbi->s_blockgroup_lock);
kfree(sbi); kfree(sbi);
return ret; return ret;
} }
......
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