drivers/lcd/pcf8574: driver lock should in pairs

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-11-03 18:07:17 +08:00 committed by Petro Karashchenko
parent 5f795a4f0d
commit 6950ea4646

View File

@ -1064,6 +1064,7 @@ static int pcf8574_lcd_open(FAR struct file *filep)
nxmutex_lock(&priv->lock);
if (priv->refs == MAX_OPENCNT)
{
nxmutex_unlock(&priv->lock);
return -EMFILE;
}
else