+2 not ++ twice
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@290 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
1cb65a9f8d
commit
3e6dbe195f
|
@ -205,8 +205,7 @@ FAR DIR *opendir(const char *path)
|
|||
* the tree semaphore and that would result in deadlock.
|
||||
*/
|
||||
|
||||
inode->i_crefs++;
|
||||
inode->i_crefs++;
|
||||
inode->i_crefs += 2;
|
||||
dir->u.psuedo.fd_next = inode; /* This is the next node to use for readdir() */
|
||||
|
||||
/* Flag the inode as belonging to the psuedo-filesystem */
|
||||
|
|
Loading…
Reference in New Issue