masc2008 opened a new pull request, #19124: URL: https://github.com/apache/nuttx/pull/19124
## Summary This change hardens `devif_conn_event()` against callback-driven mutation of the connection callback list and aligns its iterator behavior with `devif_dev_event()`. ## Problem `devif_conn_event()` saves `list->nxtconn` before invoking the current callback. If the callback mutates its callback list during execution, the saved local successor may no longer match the post-callback list topology. ## Fix - protect the current callback with `DEVIF_CB_DONT_FREE` - refresh `next` after the callback returns - defer freeing the current node until iteration is safe ## Notes This does not change behavior for non-mutating callbacks. It only makes connection-event iteration use the same deferred-free semantics already used by device-event iteration. -- 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]
