Javinator9889 opened a new pull request, #19520: URL: https://github.com/apache/nuttx/pull/19520
## Summary When the interrupts get disabled, the callback(s) are still attached. That structure is never cleared, causing several calls to attach/detach to eventually fail as the callback queue gets full. When the error occurs, the registration fails with error 12 (ENOMEM). By detaching the IRQ and clearing the callbacks, this error doesn't happen again ## Impact Calling `stm32_gpiosetevent` several times enabling and disabling the event ends up fulling the callback's queue, causing future calls to fail with `ENOMEM` without recovering from the error. ## Testing This has been tested thoroughly by attaching/detaching the events several times in a row. The behavior is now deterministic and one can add and remove GPIO events as much as wanted -- 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]
