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

   ## Summary
   
   `pm_runtime_init()` initialises the lock, counters and state of the 
runtime-PM context but leaves `suspend_work` uninitialised. A later 
`work_cancel()` on that work item therefore operates on a never-initialised 
object.
   
   Zero the work item at init, consistent with the rest of the initialisation. 
Follow-up to #22456, which was closed because the file first needed the nxstyle 
cleanup now merged via #22466.
   
   ## Testing
   
   Source-level: `suspend_work` is consumed only by the suspend path, which 
requires `pm_runtime_init()` to have run first; the added `memset` covers that 
single construction point, and the file is nxstyle-clean after #22466.
   
   Issue reference: #22172.


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