Fix the situation where af_channel is still being read after it is released
Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com>
This commit is contained in:
parent
bf50899637
commit
e73c32b848
1 changed files with 1 additions and 0 deletions
|
|
@ -793,6 +793,7 @@ int adc_register(FAR const char *path, FAR struct adc_dev_s *dev)
|
|||
|
||||
nxsem_destroy(&dev->ad_recv.af_sem);
|
||||
nxmutex_destroy(&dev->ad_closelock);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Initialize the af_channale */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue