]> www.infradead.org Git - nvme.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)
commit7d8bd3c76da1d94b85e6c9b7007e20e980bfcfe6
tree0cee9b98391bae8e7c9f5c94a13453258f58b122
parent6b22489911b726eebbf169caee52fea52013fbdd
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