mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
If the INTR granule allocator mode is enabled, there is no
semaphore to destroy. From Lorenz Meier.
This commit is contained in:
@@ -84,7 +84,9 @@ FAR struct gran_s *g_graninfo;
|
||||
static inline void gran_release_common(FAR struct gran_s *priv)
|
||||
{
|
||||
DEBUGASSERT(priv);
|
||||
#ifndef CONFIG_GRAN_INTR
|
||||
sem_destroy(&priv->exclsem);
|
||||
#endif
|
||||
kmm_free(priv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user