mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix reference count problem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@258 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+2
-1
@@ -136,6 +136,7 @@ STATUS inode_remove(const char *path)
|
||||
*/
|
||||
|
||||
node->i_flags |= FSNODEFLAG_DELETED;
|
||||
return -EBUSY;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -149,5 +150,5 @@ STATUS inode_remove(const char *path)
|
||||
|
||||
/* The node does not exist or it has references */
|
||||
|
||||
return ERROR;
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user