Skip to content

Commit

Permalink
ext2: set proper errno in error case of ext2_fill_super()
Browse files Browse the repository at this point in the history
Set proper errno in the case of failure of
initializing percpu variables.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Chengguang Xu <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
cgxu519 authored and jankara committed Dec 16, 2019
1 parent d1eef1c commit 34e9254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 34e9254

Please sign in to comment.