xhh233 opened a new pull request, #22455:
URL: https://github.com/apache/nuttx/pull/22455

   ## Summary
   
   `pm_domain_unregister()` removes the callback from the domain registry 
without checking that it is queued there. Unregistering a callback that was 
never registered, or that was already unregistered, corrupts the dlist.
   
   Return `-ENOENT` instead when the entry is not in the registry.
   
   ## Testing
   
   Source-level reasoning: `dq_inqueue()` is evaluated under the same 
`pdom->lock` that guards the removal, and the negative path releases the lock 
before returning.
   
   Issue reference: #22171.


-- 
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]

Reply via email to