renesas/rx65n: ram lock should in pair
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
a98df4a404
commit
b8d7194e66
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user