projects
/
lwext4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96b4563
)
ext4: move ext4_fs_alloc_inode result check to right place
author
Grzegorz Kostka
<kostka.grzegorz@gmail.com>
Thu, 5 Apr 2018 08:54:24 +0000
(10:54 +0200)
committer
Grzegorz Kostka
<kostka.grzegorz@gmail.com>
Thu, 5 Apr 2018 08:54:24 +0000
(10:54 +0200)
src/ext4.c
patch
|
blob
|
history
diff --git
a/src/ext4.c
b/src/ext4.c
index a6d3e2371da22427267a821c9d8b89511b0979d7..ab7b61f9e6b0fd3b14dd88eae2bb256ed6c0d7bf 100644
(file)
--- a/
src/ext4.c
+++ b/
src/ext4.c
@@
-994,10
+994,10
@@
static int ext4_generic_open2(ext4_file *f, const char *path, int flags,
r = ext4_fs_alloc_inode(fs, &child_ref,
is_goal ? ftype : EXT4_DE_DIR);
- ext4_fs_inode_blocks_init(fs, &child_ref);
if (r != EOK)
break;
+ ext4_fs_inode_blocks_init(fs, &child_ref);
/*Link with root dir.*/
r = ext4_link(mp, &ref, &child_ref, path, len, false);