diff options
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/super.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 5df3d2d8169c..9f311d27b16f 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -771,13 +771,13 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent) | |||
771 | err = -ENOMEM; | 771 | err = -ENOMEM; |
772 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); | 772 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); |
773 | if (!sbi) | 773 | if (!sbi) |
774 | goto failed_unlock; | 774 | goto failed; |
775 | 775 | ||
776 | sbi->s_blockgroup_lock = | 776 | sbi->s_blockgroup_lock = |
777 | kzalloc(sizeof(struct blockgroup_lock), GFP_KERNEL); | 777 | kzalloc(sizeof(struct blockgroup_lock), GFP_KERNEL); |
778 | if (!sbi->s_blockgroup_lock) { | 778 | if (!sbi->s_blockgroup_lock) { |
779 | kfree(sbi); | 779 | kfree(sbi); |
780 | goto failed_unlock; | 780 | goto failed; |
781 | } | 781 | } |
782 | sb->s_fs_info = sbi; | 782 | sb->s_fs_info = sbi; |
783 | sbi->s_sb_block = sb_block; | 783 | sbi->s_sb_block = sb_block; |
@@ -1130,7 +1130,7 @@ failed_sbi: | |||
1130 | sb->s_fs_info = NULL; | 1130 | sb->s_fs_info = NULL; |
1131 | kfree(sbi->s_blockgroup_lock); | 1131 | kfree(sbi->s_blockgroup_lock); |
1132 | kfree(sbi); | 1132 | kfree(sbi); |
1133 | failed_unlock: | 1133 | failed: |
1134 | return ret; | 1134 | return ret; |
1135 | } | 1135 | } |
1136 | 1136 | ||