+2 not ++ twice
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@290 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
13bd9989b2
commit
445da7f795
@ -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
Block a user