ldube opened a new pull request, #9157: URL: https://github.com/apache/nuttx/pull/9157
## Summary Unplugging a USB device from an OHCI root hub will cause a deadlock if DRVR_EPFREE is called from am_rhsc_bottomhalf. A typical call chain looks like this: sam_rhsc_bottomhalf->CLASS_DISCONNECTED->usbhost_destroy->DRVR_EPFREE. In this case DRVR_EPFREE tries to lock a locked mutex. A recursive mutex prevents this deadlock. ## Impact mutex_t vs rmutex_t ## Testing After repeated hotplugging, keyboard and mass storage were still functional. -- 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]
