jlaitine opened a new pull request, #17037: URL: https://github.com/apache/nuttx/pull/17037
## Summary The interrupt handler accesses the device as well as the driver's private data. It is not possible to protect this data with spinlocks, since the mutual exclusion problem is with drivers/usbdev. Use critical_section for mutual exclusion with drivers/usbdev, which also protects the same data with critical_section. ## Impact Fixes a kernel crash in imx9 usbdev driver, when used in SMP mode. ## Testing Tested on custom IMX93 board CONFIG_SMP, 2 CPUs, by transferring data over ttyACM. Observed that without the fix the device crashes within 10 minutes, with the fix there are no crashes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
