diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-06-11 22:47:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-06-11 22:47:43 +0000 |
commit | 50be6bb8bf81d1b83d3274005a3e55a2871f6e8f (patch) | |
tree | b7d8642011ebc2aa5dbd29645443351fad2e97e0 | |
parent | 4a0669bf9f46a8bf10d436ba426c840900788412 (diff) | |
download | px4-nuttx-50be6bb8bf81d1b83d3274005a3e55a2871f6e8f.tar.gz px4-nuttx-50be6bb8bf81d1b83d3274005a3e55a2871f6e8f.tar.bz2 px4-nuttx-50be6bb8bf81d1b83d3274005a3e55a2871f6e8f.zip |
+2 not ++ twice
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@290 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/fs/fs_opendir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/fs/fs_opendir.c b/nuttx/fs/fs_opendir.c index 3fa32fc1e..82ce905f2 100644 --- a/nuttx/fs/fs_opendir.c +++ b/nuttx/fs/fs_opendir.c @@ -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 */ |