提交 4569cd1b 编写于 作者: N Namhyung Kim 提交者: Jan Kara

ext3: Return proper error code on ext3_fill_super()

Signed-off-by: NNamhyung Kim <namhyung@gmail.com>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 57e94d86
...@@ -1871,6 +1871,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent) ...@@ -1871,6 +1871,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
if (sbi->s_group_desc == NULL) { if (sbi->s_group_desc == NULL) {
ext3_msg(sb, KERN_ERR, ext3_msg(sb, KERN_ERR,
"error: not enough memory"); "error: not enough memory");
ret = -ENOMEM;
goto failed_mount; goto failed_mount;
} }
...@@ -1958,6 +1959,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent) ...@@ -1958,6 +1959,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
} }
if (err) { if (err) {
ext3_msg(sb, KERN_ERR, "error: insufficient memory"); ext3_msg(sb, KERN_ERR, "error: insufficient memory");
ret = err;
goto failed_mount3; goto failed_mount3;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册