Skip to content

Commit 4569cd1

Browse files
namhyungjankara
authored andcommitted
ext3: Return proper error code on ext3_fill_super()
Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 57e94d8 commit 4569cd1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/ext3/super.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
18711871
if (sbi->s_group_desc == NULL) {
18721872
ext3_msg(sb, KERN_ERR,
18731873
"error: not enough memory");
1874+
ret = -ENOMEM;
18741875
goto failed_mount;
18751876
}
18761877

@@ -1958,6 +1959,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
19581959
}
19591960
if (err) {
19601961
ext3_msg(sb, KERN_ERR, "error: insufficient memory");
1962+
ret = err;
19611963
goto failed_mount3;
19621964
}
19631965

0 commit comments

Comments
 (0)