linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lukáš Czerner" <lczerner@redhat.com>
To: Eugene Shatokhin <eugene.shatokhin@rosalab.ru>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [PATCH] ext4: fix error handling in ext4_fill_super()
Date: Mon, 8 Oct 2012 14:25:38 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.1210081424290.25096@localhost> (raw)
In-Reply-To: <1349694582-16958-1-git-send-email-eugene.shatokhin@rosalab.ru>

On Mon, 8 Oct 2012, Eugene Shatokhin wrote:

> Date: Mon,  8 Oct 2012 15:09:42 +0400
> From: Eugene Shatokhin <eugene.shatokhin@rosalab.ru>
> To: linux-ext4@vger.kernel.org
> Cc: Eugene Shatokhin <eugene.shatokhin@rosalab.ru>
> Subject: [PATCH] ext4: fix error handling in ext4_fill_super()
> 
> If ext4_mb_init() returns error (e.g. if there is not enough memory),
> ext4_fill_super() returns 0 rather than the error code.
> 
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=48431
> 
> The patch fixes that problem.

Unfortunately there are other places with this problem as well.
I'll send you a different patch to address this problem, let me know
what do you think.

Thanks!
-Lukas

> 
> Signed-off-by: Eugene Shatokhin <eugene.shatokhin@rosalab.ru>
> ---
>  fs/ext4/super.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/ext4/super.c b/fs/ext4/super.c
> index 982f6fc..7292532 100644
> --- a/fs/ext4/super.c
> +++ b/fs/ext4/super.c
> @@ -3982,6 +3982,7 @@ no_journal:
>  	if (err) {
>  		ext4_msg(sb, KERN_ERR, "failed to initialize mballoc (%d)",
>  			 err);
> +		ret = err;
>  		goto failed_mount5;
>  	}
>  
> 

  reply	other threads:[~2012-10-08 12:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-08 11:09 [PATCH] ext4: fix error handling in ext4_fill_super() Eugene Shatokhin
2012-10-08 12:25 ` Lukáš Czerner [this message]
2012-10-08 12:32   ` Lukas Czerner
2012-10-08 13:48     ` Lukáš Czerner
2012-10-08 14:46       ` Eugene Shatokhin
2012-11-08 20:15     ` Theodore Ts'o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.00.1210081424290.25096@localhost \
    --to=lczerner@redhat.com \
    --cc=eugene.shatokhin@rosalab.ru \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).