Skip to content
Snippets Groups Projects
Commit 93b48ea7 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix a logic error introduced with last commit

parent 8221c2da
No related branches found
No related tags found
No related merge requests found
......@@ -294,7 +294,8 @@ int mount(FAR const char *source, FAR const char *target,
{
ferr("ERROR: target %s exists and is a special node\n", target);
errcode = -ENOTDIR;
goto errout_with_inode;
inode_release(mountpt_inode);
goto errout_with_semaphore;
}
}
else
......@@ -419,9 +420,6 @@ errout_with_mountpt:
}
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
errout_with_inode:
#endif
inode_release(mountpt_inode);
goto errout;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment