summaryrefslogtreecommitdiffstats
path: root/fs/ext3/super.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-10-11 12:08:06 +0200
committerJan Kara <jack@suse.cz>2010-10-28 01:30:03 +0200
commit4569cd1b0d91e4d7fa67f950201befc2acfecb34 (patch)
tree6dd610533c509f016693a1ba2215902a3561202d /fs/ext3/super.c
parentext3: Remove unnecessary casts on bh->b_data (diff)
downloadlinux-4569cd1b0d91e4d7fa67f950201befc2acfecb34.tar.xz
linux-4569cd1b0d91e4d7fa67f950201befc2acfecb34.zip
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>
Diffstat (limited to 'fs/ext3/super.c')
-rw-r--r--fs/ext3/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index af7aead1000a..1811c6fd5ba4 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -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;
}