mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
Complete re-implementation of mq_close
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user