mufs: fix off by one in comparison in mufs_extend_tree()
This commit is contained in:
parent
ba12823d8b
commit
2401b024a9
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ int mufs_extend_tree(struct mufs *fs, struct mufs_tree *tree, uint8_t depth)
|
|||
{
|
||||
uint32_t root;
|
||||
|
||||
for (; tree->depth < depth; ++tree->depth) {
|
||||
for (; tree->depth <= depth; ++tree->depth) {
|
||||
if (mufs_alloc_block(fs, &root) < 0)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue