renesas/rx65n: ram lock should in pair

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-11-03 18:51:20 +08:00 committed by Petro Karashchenko
parent a98df4a404
commit b8d7194e66

View File

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