Commit c279f7a4 authored by Jan Kara's avatar Jan Kara Committed by Greg Kroah-Hartman

ext4: handle error of ext4_setup_system_zone() on remount

[ Upstream commit d176b1f6 ]

ext4_setup_system_zone() can fail. Handle the failure in ext4_remount().
Reviewed-by: default avatarLukas Czerner <lczerner@redhat.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200728130437.7804-2-jack@suse.czSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bfb8d9b7
......@@ -5470,7 +5470,10 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
ext4_register_li_request(sb, first_not_zeroed);
}
ext4_setup_system_zone(sb);
err = ext4_setup_system_zone(sb);
if (err)
goto restore_opts;
if (sbi->s_journal == NULL && !(old_sb_flags & SB_RDONLY)) {
err = ext4_commit_super(sb, 1);
if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment