summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorYongqiang Yang <xiaoqiangnk@gmail.com>2011-05-22 20:49:12 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-05-22 20:49:12 -0400
commit93917411be8db5d21abf15c781dfa43c5cc6edf2 (patch)
treed5fb8f6b69a8fe710663ba5e5f7cb9fdec982112 /fs/ext4
parent373cd5c53d5ea6622c319ecd84e29e2737d488bd (diff)
ext4: make ext4_split_extent() handle error correctly
Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Mingming Cao <cmm@us.ibm.com>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/extents.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 5f243da8ff1d..9a3844adb1cb 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2716,6 +2716,8 @@ static int ext4_split_extent(handle_t *handle,
EXT4_EXT_MARK_UNINIT2;
err = ext4_split_extent_at(handle, inode, path,
map->m_lblk + map->m_len, split_flag1, flags1);
+ if (err)
+ goto out;
}
ext4_ext_drop_refs(path);