Complete re-implementation of mq_close

This commit is contained in:
Gregory Nutt
2014-09-29 15:33:34 -06:00
parent 584d0fe4ad
commit 1f2cc9f4fe
13 changed files with 167 additions and 71 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ int sem_close(FAR sem_t *sem)
/* Decrement the reference count on the inode */
inode_semtake();
if (inode->i_crefs)
if (inode->i_crefs > 0)
{
inode->i_crefs--;
}