]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ext4: handle add_system_zone() failure in ext4_setup_system_zone()
authorJan Kara <jack@suse.cz>
Tue, 28 Jul 2020 13:04:36 +0000 (15:04 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 Aug 2020 18:12:36 +0000 (14:12 -0400)
commite7bfb5c9bb3d63cb2abb3ceaf1a429d9f02f942d
tree18846b883f97a443daf02ea7687ab91ffb525b98
parent3f67e7cffa6ee2d49ccb697c569c6d30e6024160
ext4: handle add_system_zone() failure in ext4_setup_system_zone()

There's one place that fails to handle error from add_system_zone() call
and thus we can fail to protect superblock and group-descriptor blocks
properly in case of ENOMEM. Fix it.

Reported-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200728130437.7804-6-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/block_validity.c