mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
If the INTR granule allocator mode is enabled, there is no
semaphore to destroy. From Lorenz Meier.
This commit is contained in:
parent
b5d737aa00
commit
f06289e4d5
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue