Skip to content

Commit

Permalink
ext4: move ext4_fs_alloc_inode result check to right place
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostka committed Apr 5, 2018
1 parent 96b4563 commit dc0347c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc0347c

Please sign in to comment.