]> 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)
commit9ed41a9ea19fffe27c32b6954bd77c10da6f8771
tree0cee9b98391bae8e7c9f5c94a13453258f58b122
parentc904379af66dc8880073fc279c7fb62b2f61a937
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