diff options
author | Chengguang Xu <cgxu519@mykernel.net> | 2019-11-29 04:36:36 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-12-16 14:59:14 +0300 |
commit | 34e92542da964304f41f97deee6e34085ad8106b (patch) | |
tree | 9e37f643ba6aab55ce037f9daa95f8f89b5e1012 /fs/ext2/super.c | |
parent | d1eef1c619749b2a57e514a3fa67d9a516ffa919 (diff) | |
download | linux-34e92542da964304f41f97deee6e34085ad8106b.tar.xz |
ext2: set proper errno in error case of ext2_fill_super()
Set proper errno in the case of failure of
initializing percpu variables.
Link: https://lore.kernel.org/r/20191129013636.7624-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2/super.c')
-rw-r--r-- | fs/ext2/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index bcffe25da2f0..8643f98e9578 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -1138,6 +1138,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent) ext2_count_dirs(sb), GFP_KERNEL); } if (err) { + ret = err; ext2_msg(sb, KERN_ERR, "error: insufficient memory"); goto failed_mount3; } |