]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Apr 2021 20:42:18 +0000 (15:42 -0500)
commit84d30b65bc2dc98de95de8a60d30341b5281618e
tree9bc73cfa7a8df2208e0918df2716c163b8f75727
parent3030030fc13e3eb7d7fe618f8aee12958666e7c6
ext4: fix potential error in ext4_do_update_inode

BugLink: https://bugs.launchpad.net/bugs/1921712
commit 7d8bd3c76da1d94b85e6c9b7007e20e980bfcfe6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
fs/ext4/inode.c