drviers/video: driver lock should in pairs

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-11-03 18:17:37 +08:00 committed by Petro Karashchenko
parent 25e78c5330
commit 4f7f70598a

View File

@ -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;
}