diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-05-28 17:49:54 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-05-28 17:49:54 -0400 |
commit | 2cde417de013b2e5ae3007374d937e8c4c426bd4 (patch) | |
tree | a103c97aca903c3b6bc6147f92c76b34fe28c90a /fs/ext4 | |
parent | 2716b80284c5ca415b8ce93ca178b0ca28482568 (diff) |
ext4: return ENOMEM when mounts fail due to lack of memory
This is a port of the ext3 commit: 4569cd1b0d9
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 545932c0a29..628cfcdc082 100644 --- 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; } |