projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2716b80
)
ext4: return ENOMEM when mounts fail due to lack of memory
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 28 May 2012 21:49:54 +0000
(17:49 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 28 May 2012 21:49:54 +0000
(17:49 -0400)
This is a port of the ext3 commit:
4569cd1b0d9
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c
patch
|
blob
|
history
diff --git
a/fs/ext4/super.c
b/fs/ext4/super.c
index 545932c0a2905704784fcfe991e1cef8fbd93bb0..628cfcdc082341b54ea220bfce7bedada72ba1d3 100644
(file)
--- a/
fs/ext4/super.c
+++ b/
fs/ext4/super.c
@@
-3527,6
+3527,7
@@
static int ext4_fill_super(struct super_block *sb, void *data, int silent)
GFP_KERNEL);
if (sbi->s_group_desc == NULL) {
ext4_msg(sb, KERN_ERR, "not enough memory");
+ ret = -ENOMEM;
goto failed_mount;
}
@@
-3584,6
+3585,7
@@
static int ext4_fill_super(struct super_block *sb, void *data, int silent)
}
if (err) {
ext4_msg(sb, KERN_ERR, "insufficient memory");
+ ret = err;
goto failed_mount3;
}