xhh233 opened a new pull request, #22456: URL: https://github.com/apache/nuttx/pull/22456
## Summary `pm_runtime_init()` initialises the lock, counters and state of the runtime-PM context but leaves `suspend_work` uninitialised. A later cancellation of that work item therefore operates on garbage. Zero the work item at init time, consistent with the rest of the initialisation. ## Testing Source-level reasoning: `suspend_work` is only consumed by the suspend path, which requires `pm_runtime_init()` to have run first; the added `memset` covers that single construction point. 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]
