]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix potential error in ext4_do_update_inode
authorShijie Luo <luoshijie1@huawei.com>
Fri, 12 Mar 2021 06:50:51 +0000 (01:50 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 21 Mar 2021 04:14:08 +0000 (00:14 -0400)
commit87e7a61f3340f036a30ae680a600b8390bf89389
tree0cee9b98391bae8e7c9f5c94a13453258f58b122
parent99e5d286dfb3f82ef1494b242c4926634a70103e
ext4: fix potential error in ext4_do_update_inode

If set_large_file = 1 and errors occur in ext4_handle_dirty_metadata(),
the error code will be overridden, go to out_brelse to avoid this
situation.

Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
Link: https://lore.kernel.org/r/20210312065051.36314-1-luoshijie1@huawei.com
Cc: stable@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c