drivers/lcd/ft80x: unlock mutex before free
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
ad978e7702
commit
5f795a4f0d
@ -531,6 +531,7 @@ static int ft80x_close(FAR struct file *filep)
|
|||||||
priv->crefs = 0;
|
priv->crefs = 0;
|
||||||
if (priv->unlinked)
|
if (priv->unlinked)
|
||||||
{
|
{
|
||||||
|
nxmutex_unlock(&priv->lock);
|
||||||
ft80x_destroy(priv);
|
ft80x_destroy(priv);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user