drviers/video: driver lock should in pairs
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
25e78c5330
commit
4f7f70598a
@ -1046,6 +1046,7 @@ static int video_close(FAR struct file *filep)
|
||||
nxmutex_lock(&priv->lock_open_num);
|
||||
if (priv->open_num == 0)
|
||||
{
|
||||
nxmutex_unlock(&priv->lock_open_num);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user