linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext4: fix error handling in ext4_fill_super()
@ 2012-10-08 11:09 Eugene Shatokhin
  2012-10-08 12:25 ` Lukáš Czerner
  0 siblings, 1 reply; 6+ messages in thread
From: Eugene Shatokhin @ 2012-10-08 11:09 UTC (permalink / raw)
  To: linux-ext4; +Cc: Eugene Shatokhin

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.

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;
 	}
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-08 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-08 11:09 [PATCH] ext4: fix error handling in ext4_fill_super() Eugene Shatokhin
2012-10-08 12:25 ` Lukáš Czerner
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

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).