Commit 7d8bd3c
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>1 parent 6b22489 commit 7d8bd3c
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5026 | 5026 | | |
5027 | 5027 | | |
5028 | 5028 | | |
5029 | | - | |
| 5029 | + | |
5030 | 5030 | | |
5031 | 5031 | | |
5032 | 5032 | | |
| |||
5138 | 5138 | | |
5139 | 5139 | | |
5140 | 5140 | | |
5141 | | - | |
5142 | | - | |
5143 | | - | |
| 5141 | + | |
| 5142 | + | |
| 5143 | + | |
5144 | 5144 | | |
5145 | 5145 | | |
5146 | 5146 | | |
| |||
0 commit comments