mirror of
https://github.com/apache/nuttx.git
synced 2026-05-11 16:01:03 +08:00
1210dc4919
This protects the driver in case multiple threads are trying to initialize or uninitialize the cdcacm concurrently. Note that this only protects the case when the private pointer is not managed outside the kernel. If someone has acquired the pointer to the driver and uses that, it also needs to manage the protection itself if needed. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>