From: Namhyung Kim Date: Mon, 11 Oct 2010 10:08:06 +0000 (+0900) Subject: ext3: Return proper error code on ext3_fill_super() X-Git-Tag: v2.6.37-rc1~78^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4569cd1b0d9;p=karo-tx-linux.git ext3: Return proper error code on ext3_fill_super() Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara --- 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; }