mufs: set root after extending a file tree
This commit is contained in:
parent
3b601ea588
commit
8f74da799e
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ int mufs_extend_tree(struct mufs *fs, struct mufs_tree *tree, uint8_t depth)
|
|||
mufs_free_block(fs, root);
|
||||
return -1;
|
||||
}
|
||||
|
||||
tree->root = root;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue