From: Yongqiang Yang Date: Mon, 23 May 2011 00:49:12 +0000 (-0400) Subject: ext4: make ext4_split_extent() handle error correctly X-Git-Tag: MMI-PSA29.97-13-9~19454^2~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93917411be8db5d21abf15c781dfa43c5cc6edf2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ext4: make ext4_split_extent() handle error correctly Signed-off-by: Yongqiang Yang Signed-off-by: "Theodore Ts'o" Reviewed-by: Mingming Cao --- 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);