mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
vfs/file: add reference counting to prevent accidental close during reading writing...
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
f2fd0bc148
commit
43223124ec
@@ -603,6 +603,7 @@ static int audio_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
audinfo("AUDIOIOC_UNREGISTERMQ\n");
|
||||
|
||||
fs_putfilep(upper->usermq);
|
||||
upper->usermq = NULL;
|
||||
ret = OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user