From 445da7f79500ee2b9cc396e61b12935550fbdf0b Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 11 Jun 2007 22:47:43 +0000 Subject: [PATCH] +2 not ++ twice git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@290 42af7a65-404d-4744-a932-0658087f49c3 --- fs/fs_opendir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/fs_opendir.c b/fs/fs_opendir.c index 3fa32fc1ed4..82ce905f2e5 100644 --- a/fs/fs_opendir.c +++ b/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 */