Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4569cd1b authored by Namhyung Kim's avatar Namhyung Kim Committed by Jan Kara
Browse files

ext3: Return proper error code on ext3_fill_super()



Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 57e94d86
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1871,6 +1871,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
	if (sbi->s_group_desc == NULL) {
		ext3_msg(sb, KERN_ERR,
			"error: not enough memory");
		ret = -ENOMEM;
		goto failed_mount;
	}

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