fix(ipc): guard LOG_D against null thread pointer in rt_susp_list_dequeue#11499
fix(ipc): guard LOG_D against null thread pointer in rt_susp_list_dequeue#11499srpatcha wants to merge 1 commit into
Conversation
…ueue rt_susp_list_dequeue() can return RT_NULL when the suspend list is empty or when the dequeued thread has already been cleaned up. The LOG_D call dereferences thread->parent.name unconditionally, causing a null pointer dereference crash when thread is NULL. Also fixes typo: redesigen -> redesign in changelog comment.
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: kernelReviewers: @GorrayLi @ReviewSun @hamburger-os @lianux-mm @wdfk-prog @xu18838022837 Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-06-17 14:30 CST)
📝 Review Instructions
|
Description
rt_susp_list_dequeue() can return RT_NULL when the suspend list is empty or when the dequeued thread has been cleaned up. The LOG_D call dereferences thread->parent.name unconditionally, causing a null pointer dereference crash when thread is NULL.
Changes
Testing
Replaces #11337 (rebased onto current master to fix CI).