mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 08:38:24 +08:00
ext4: return error when calling ext4_ext_split failed
ext4_ext_create_new_leaf must return error when its calling to ext4_ext_split failed. Signed-off-by: Shen Feng <shen@cn.fujitsu.com> Signed-off-by: Mingming Cao <cmm@us.ibm.com> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
a379cd1d6b
commit
787e0981fa
@ -981,6 +981,8 @@ repeat:
|
|||||||
/* if we found index with free entry, then use that
|
/* if we found index with free entry, then use that
|
||||||
* entry: create all needed subtree and add new leaf */
|
* entry: create all needed subtree and add new leaf */
|
||||||
err = ext4_ext_split(handle, inode, path, newext, i);
|
err = ext4_ext_split(handle, inode, path, newext, i);
|
||||||
|
if (err)
|
||||||
|
goto out;
|
||||||
|
|
||||||
/* refill path */
|
/* refill path */
|
||||||
ext4_ext_drop_refs(path);
|
ext4_ext_drop_refs(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user