]> git.baikalelectronics.ru Git - 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)
commit3258d89e0030c2d8c4c30627d75fd44784463824
tree18846b883f97a443daf02ea7687ab91ffb525b98
parent0d46f1d3947e3171f42ccfae9d0171701e8af81b
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