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:
zhangkai25 2024-09-09 21:06:21 +08:00 committed by Xiang Xiao
parent bf50899637
commit e73c32b848

View file

@ -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 */