mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
Fix a logic error introduced with last commit
This commit is contained in:
+2
-4
@@ -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);
|
ferr("ERROR: target %s exists and is a special node\n", target);
|
||||||
errcode = -ENOTDIR;
|
errcode = -ENOTDIR;
|
||||||
goto errout_with_inode;
|
inode_release(mountpt_inode);
|
||||||
|
goto errout_with_semaphore;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -419,9 +420,6 @@ errout_with_mountpt:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
|
||||||
errout_with_inode:
|
|
||||||
#endif
|
|
||||||
inode_release(mountpt_inode);
|
inode_release(mountpt_inode);
|
||||||
goto errout;
|
goto errout;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user