mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
f2fd0bc148
commit
43223124ec
50 changed files with 335 additions and 146 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue